Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

B) Consider the following insurance database, where the primary keys are underlined. Construct the following SQL queries for this relational database. person (driver- id#, name,

  • B) Consider the following insurance database, 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 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Programming questions