Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Step: 3

blur-text-image

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 Databases questions