Question: Consider the insurance database of Figure where the primary keys

Consider the insurance database of Figure, 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.

View Solution:

Sale on SolutionInn
  • CreatedJanuary 28, 2011
  • Files Included
Post your question