Question: Using the relational database given below, person( driver-id, name, address ) car( license plate, model , year) accident report-number, year, region ) owns( driver-id ,
Using the relational database given below, person( driver-id, name, address ) car( license plate, model , year) accident report-number, year, region ) owns( driver-id , license-plate ) participated report-number license-plate , driver-id , damage-amount ) write the following queries in SQL: a) Which car did not participate in an accident? (10 pts) b) Which driver was the most careless driver in terms of number of accidents in 2020? (15 pts) c) Give details (for each year) about the most costly accident in Lefke region for the past three years. (15 pts d) Give details about the second most costly accident in Guzelyurt region. (20 pts) e) Statistically which region has the maximum total damage cost for the insurance company? (20 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
