Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use this SQL database for the question: actor 18 18 act id mov_id role integer integer char (30) genres 7 act id act fname actiname

Use this SQL database for the question:

image text in transcribed

image text in transcribed

image text in transcribed

actor 18 18 act id mov_id role integer integer char (30) genres 7 act id act fname actiname act gender integer char (20) char (20) char (1) 9 gen id gen title integer char (20) movie director y dirid movid integer integer char (20) char (20) dir fname dir name movid integer mov title char (50) mov year integer mov time Integer mov lang char (50) mov dt rel date mov rel country char (5) gend integer reviewer movie_direction dir d Tey id rey id mavid Integer integer rev stars integer num o ratings integer 81 integer integer integer mov id rev name chat 30 2. Write the SQL queries for the following items, considering the SQL Optimization Techniques studied in classes. a. List all the actors who have not acted in any movie between 1990 and 2000. b. Find how many movies are there in each genre. c.1. Draw the initial query tree of this query, then draw the resulting query trees after the applications of the following heuristic optimization query steps (Ch 19, Textbook) c.2. Moving SELECT operations down to the query tree. C.3. Applying the more restrictive SELECT operation first

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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Know how procedures protect an organization

Answered: 1 week ago

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago