MOVIE DirectorID MovieID DirectorName Movie StSp0101 JawsSP0101 Steven Spielberg Jaws…
- User
MOVIE Director_ID | Movie_ID | Director_Name | Movie St_Sp_0101 | Jaws_SP_0101| Steven Spielberg | Jaws St_Sp_0101 | E.T_SP_0102 | Steven Spielberg | E.T. Ch_No_0203 | Ince_CN_0203| Christopher Nolan | Inception Ch_No_0203 | Inte_CN_0204| Christopher Nolan | Interstellar Qu_Ta_0305 | Pulp_QT_0305| Quentin Tarantino | Pulp Fiction Qu_Ta_0305 | Kill_QT_0306| Quentin Tarantino | Kill Bill Ma_Sc_0407 | Good_MS_0407| Martin Scorsese | Goodfellas
DIRECTOR Director_ID | Director_Name St_Sp_0101 | Steven Spielberg Ch_No_0203 | Christopher Nolan Qu_Ta_0305 | Quentin Tarantino Ma_Sc_0407 | Martin Scorsese MOVIE PURCHASE Movie_ID | Movie | Purchase_Date | Quantity Jaws_SP_0101| Jaws | Sep 7, 2023 | 3 E.T_SP_0102 | E.T. | Sep 5, 2023 | 2 Ince_CN_0203| Inception | Sep 6, 2023 | 4 Inte_CN_0204| Interstellar | Sep 6, 2023 | 1 Pulp_QT_0305| Pulp Fiction | Sep 5, 2023 | 3 Kill_QT_0306| Kill Bill | Sep 7, 2023 | 2 Good_MS_0407| Goodfellas | Sep 7, 2023 | 1
Q2: Use a 5-bucket extendible hash with I. B+ Tree and II. Any data structure other than B+ Tree; as the core database arrangement structure for all tables. Compare between the different variations of optimization of the following queries on the given tables. [Answers in the report must begin with the Relational Algebra expression, followed by execution of queries as per the query plans]: Retrieve Movie_ID of movies purchased after September 5th, 2023, with ≤ 2 copies. Retrieve movie names and director details for all movies directed by people whose names begin with 'S', 'C', or 'M'. Retrieve the names of directors whose movies have been purchased across all available dates in the purchase table. For movies that have only one copy in the database, retrieve the corresponding director names.
- Assistant