Question: Note: Run the CityJail _ 8 . sql file provided by your instructor to ensure that all necessary tables and constraints are available for this
Note: Run the CityJailsql file provided by your instructor to ensure that all necessary tables and constraints are available for this case study. This script isn't included in student data files because case study assignments in previous chapters include table creation challenges. This script rebuilds the City Jail database. Don't be concerned with errors from the DROP TABLE commands, which delete any existing tables of the same names.
The following list reflects common data requests from city managers. Write the SQL statements to satisfy the requests. If the query can be accomplished by using different operators, supply alternative solutions so that the performancetuning group can test them and identify the more efficient statements. Test the statements and show execution results.
List all criminal aliases beginning with the letter
List all crimes that occurred were charged during the month October List the crime ID criminal ID date charged, and classification.
List all crimes with a status of CA can appeal or IA in appeal List the crime ID criminal ID date charged, and status.
List all crimes classified as a felony. List the crime ID criminal ID date charged, and classification.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
