Question
Cityjail_8.sql DML script The citys Crime Analysis unit has submitted the following data requests. Provide the SQL statements using sub queries to satisfy the requests.
Cityjail_8.sql DML script
The citys Crime Analysis unit has submitted the following data requests. Provide the SQL statements using sub queries to satisfy the requests. Test the statements and sure execution results all must work in oracle sql.
1. List the name of each officer who has reported less than the average number of crimes officers has reported.
2. List the criminal names for all criminals who have less than the average number of crimes and are listed as violent offenders.
3. List appeal information for each appeal that has more than the average number of days between the filing and hearing dates
4. List the names of probation officers who have had less than the average number of criminals assigned
5. List each crime that has had the highest number of appeals recorded
6. List the information on crime charges for each charge that has had a fine below average and a sum paid above average
7. List the names of all criminals who have had any of the crime code charges involved in crime ID 10089
8. Use a correlated sub query to determine which criminals have had at least one probation period assigned
9. List the names of officers who have booked the highest number of crimes. Note that more than one officer might be listed
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