Question: All answers shall be typed using a word processor 1. (100 pts) Consider the insurance database of Fig 1, where the primary keys are underlined.

All answers shall be typed using a word processor

All answers shall be typed using a word processor 1. (100 pts)

1. (100 pts) Consider the insurance database of Fig 1, where the primary keys are underlined. Construct the following SQL queries for this relational database. a. Find the total number of people who owned cars that were involved in accidents in 1989. b. Find the number of accidents in which the cars belonging to "John Smith" were involved. c. Add a new accident to the database; assume any values for required attributes. d. Delete the Mazda belonging to "John Smith. e. Update the damage amount for the car with license number "AABB2000" in the accident with report number "AR2197" to $3000. person(driver-id, name, address) car(car-license, model, year) accident(report-number, date, location) owns(drive-id, car-license) participated (driver-id, car-license, report-number, damage amount) Figure 1. Insurance database

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!