Consider the Insurance database given below, where the primary keys are underlined. Assume each relation is filled with 10 tuples with all attributes having suitable domain-specific values and no null entries. Construct the following SQL queries for this relational database. person (driverid, name, address) car (license, model, year) accident (reportno, Adate, location) owns (driverid, license) participated (reportno, license, driverid, damage_amt) i. Find the number of accidents in which the cars belonging to “Karuna" were involved. ii. Update the damage amount for the car with the license number "KA15XL" in the accident with report number 52010 to 53000. Find out the location from which five or more accident cases are reported between iii. the time duration of 2016 to 2020.

Database Systems: Design, Implementation, & Management
11th Edition
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Chapter10: Transaction Management And Concurrency Control
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Consider the Insurance database given below, where the primary keys are underlined. Assume
each relation is filled with 10 tuples with all attributes having suitable domain-specific values
and no null entries. Construct the following SQL queries for this relational database.
person (driverid, name, address)
car (license, model, year)
accident (reportno, Adate, location)
owns (driverid, license)
participated (reportno, license, driverid, damage_amt)
Find the number of accidents in which the cars belonging to "Karuna" were involved.
Update the damage amount for the car with the license number "KA15XL" in the
accident with report number 52010 to 53000.
Find out the location from which five or more accident cases are reported between
the time duration of 2016 to 2020.
i.
ii.
iii.
Transcribed Image Text:Consider the Insurance database given below, where the primary keys are underlined. Assume each relation is filled with 10 tuples with all attributes having suitable domain-specific values and no null entries. Construct the following SQL queries for this relational database. person (driverid, name, address) car (license, model, year) accident (reportno, Adate, location) owns (driverid, license) participated (reportno, license, driverid, damage_amt) Find the number of accidents in which the cars belonging to "Karuna" were involved. Update the damage amount for the car with the license number "KA15XL" in the accident with report number 52010 to 53000. Find out the location from which five or more accident cases are reported between the time duration of 2016 to 2020. i. ii. iii.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Complex Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning