Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a database containing information about all the car accidents between 1997 and 2005, including the cars involved and their owners. The database has the

Consider a database containing information about all the car accidents between 1997 and 2005, including the cars involved and their owners. The database has the following tables:

Car (license, year, make, model);

Accident (license, accident date, damage_amount zipcode);

Owner (SSN, license, name, address, zipcode);

// zipcode in Accident is the place where accident took place

// assume that the same car does not get into an accident twice in a day

// assume each owner has only one licensed car

Consider the following query:

SELECT O.name, A.damage_amount

FROM Car C, Accident A, Owner O

WHERE C.license = A.license AND C.licese = O. license AND A.zipcode = O.zipcode AND C.make = Volvo AND

A.accident_date < 07/01/2000 AND A.damage_amount > 10000;

Draw the initial tree for this query, and generate a range of query-evaluation plans from the given query by using the equivalence rules, and choose the one with the least cost.

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Question Can any type of stock or securities be used in an ESOP?

Answered: 1 week ago

Question

Question Can a self-employed person adopt a money purchase plan?

Answered: 1 week ago