Answered step by step
Verified Expert Solution
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:
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started