Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 databaseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started