Assignment 7
Assignment 7
1.
2. 2022 Fall
3. 2021 spring
4. 2021 fall
6. 2020 fall
7. 2019 spring
8. 2019 fall
9. 2018 spring
12.
16. Consider the insurance database of below, where the primary keys are underlined. Construct
the following SQL queries for this relational database.
person (driver-id, name, address)
car (license, model, year)
accident (report-number, date, location)
owns (driver-id, license)
participated (driver-id, car, report-number, damage-amount)
a. Find the total number of people who owned cars that were involved in accidents in 2015.
b. Find the number of accidents in which the cars belonging to “John Smith” were involved.
c. Delete the Range Rover belonging to “John Smith”.
d. Update the damage amount for the car with license number “AABB2000” in the accident with
report number “AR2197” to $3000.
17.