Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SQL Assignment: The citys crime analysis unit has submitted the following data requests. Provide the SQL statements to satisfy the requests. Test the statements and
SQL Assignment:
The citys crime analysis unit has submitted the following data requests. Provide the SQL statements to satisfy the requests. Test the statements and show the query results.
- Show the total number of crimes reported by an officer.
- Show the average number of crimes by status.
- List the lowest number of crimes committed by a person.
- Display the highest fine amount assigned to a crime charge.
- List criminals (ID and name) who have multiple sentences assigned.
- List the total number of crime charges successfully defended (guilty status assigned) by precinct. Include only precincts with at least six guilty charges.
- List the total amount of collections (fines and fees) and the total amount owed by crime classification.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started