1) List appeal information for each appeal that has a less than average number of crimes and aren't listed as violent offenders 2) Use a correlated subquery to determine which criminals have had at...

1 answer below »
Oracle assignment attached



1) List appeal information for each appeal that has a less than average number of crimes and aren't listed as violent offenders 2) Use a correlated subquery to determine which criminals have had at least one probation period assigned. 3) Create a statement that always returns the names of the three criminals with the highest number of crimes committed. 4) create a view that includes details for all crimes, including criminal id, criminal name, criminal parole status, crime id, date of crime charge, crime status, charge id, crime code, charge status, pay due date, and amount due. this view shouldn't allow performing any DML operations. Each time the view is used in the application, the data should be queried from the database. (For example, each use of the view should reflect the most current data in the database.)
Answered 2 days AfterApr 29, 2021

Answer To: 1) List appeal information for each appeal that has a less than average number of crimes and aren't...

Ali Asgar answered on May 02 2021
167 Votes
SELECT a.appeal_id, a.filing_date, a.hearing_date, crs.crime_id
FROM appeals a
JOIN (criminals crl
s
JOIN crimes crs
ON crls.criminal_id = crs.criminal_id) ON a.crime_id=crs.crime_id
WHERE a.crime_id < ALL (SELECT AVG(COUNT(*))
FROM crimes
GROUP BY...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here