Question: Database Managment. Build the parse trees for the following queries, and optimize them using the rewrite rules. Given the relations: MOVIE(title, year, director, language), and
Build the parse trees for the following queries, and optimize them using the "rewrite rules". Given the relations: MOVIE(title, year, director, language), and Starsin(title, year, StarName, language), a. SELECT starname FROM GermanMovies NATURAL JOIN Starsin WHERE Director = ABCDEF' (Note German Movies is a view as shown below: CREATE VIEW GermanMovies AS SELECT * FROM Movie WHERE language "German'; b. SELECT Dept Name FROM Dept, Manager WHERE Manager. DNO=DEPT.DNO and Manager. Salary 50000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
