Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

** PLEASE USE SQL STATEMENTS** 4. (5 points) Consider the insurance database in the following table, where primary keys are underlined person (driver id, name,

**PLEASE USE SQL STATEMENTS**image text in transcribed

4. (5 points) Consider the insurance database in the following table, where primary keys are underlined person (driver id, name, address) car (vin, model, year) accident (report id, day, month, year, time, location) owns (driver id, vin) participated (report id, vin, driverid, damage_amt) Construct the following queries: (a) Find the total number of "Honda" involved in accidents in 2015. (b) Find the number of accidents in which the cars belonging to "John Smith" were involved. (e) Find the number of accidents and total damage amt for each year. 4. (5 points) Consider the insurance database in the following table, where primary keys are underlined person (driver id, name, address) car (vin, model, year) accident (report id, day, month, year, time, location) owns (driver id, vin) participated (report id, vin, driverid, damage_amt) Construct the following queries: (a) Find the total number of "Honda" involved in accidents in 2015. (b) Find the number of accidents in which the cars belonging to "John Smith" were involved. (e) Find the number of accidents and total damage amt for each year

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago