Question: Consider the insurance database of Figure 3.17, where the primary keys are underlined. Construct the following SQL queries for this relational database. a. Find the
Consider the insurance database of Figure 3.17, where the primary keys are underlined. Construct the following SQL queries for this relational database.
a. Find the number of accidents involving a car belonging to a person named “John Smith”.
b. Update the damage amount for the car with the license plate “AABB2000” in the accident with report number “AR2197” to $3000. B2000”)
Figure 3.17
person (driver_id, name, address) car (license plate, model, year) accident (report_number, year, location) owns (driver_id, license_plate) participated (report_number, license_plate, driver_id, damage_amount)
Step by Step Solution
3.49 Rating (169 Votes )
There are 3 Steps involved in it
a Find the number of accidents involving a car belonging to ... View full answer
Get step-by-step solutions from verified subject matter experts
