Question: 3. b) (3 points) Consider the insurance database in the following table, where primary keys are underlined. person (driver id, name, address) car (vin, model,
3. b) (3 points) Consider the insurance database in the following table, where primary keys are underlined.
person (driver id, name, address)
car (vin, model, year)
accident (report id, day, month, year, time, location)
owns (driver id, vin)
participated (report id, vin, driver id, damage amt)
Construct the following queries:
i. Find the total number of Honda involved in accidents in 2015.
ii. Find the number of accidents in which the cars belonging to John Smith were involved.
iii. Find the number of accidents and total damage amt for each year.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
