Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

table database is Cityjail_8.sql from Oracle 12c: SQL, 3rd Edition Joan Casteel ISBN: 978-1-30525103-8 The citys Crime Analysis unit has submitted the following data requests.

table database is Cityjail_8.sql from Oracle 12c: SQL, 3rd Edition Joan Casteel ISBN: 978-1-30525103-8

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 appeal information for each appeal that has more than the average number of days between the filing and hearing dates

2. List each crime that has had the highest number of appeals recorded

3. List the information on crime charges for each charge that has had a fine below average and a sum paid above average

4. List the names of all criminals who have had any of the crime code charges involved in crime ID 10089

5. Use a correlated sub query to determine which criminals have had at least one probation period assigned

6. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Question Can life insurance be used in a Keogh (HR 10) plan?

Answered: 1 week ago