Use a correlated subquery in each problem. Use the following EER diagram as a reference: director...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use a correlated subquery in each problem. Use the following EER diagram as a reference: director id INT dir_firstName VARCHAR(30) +1- dir_lastName VARCHAR(30) Indexes movie id INT mov_title VARCHAR (35) mov_year INT mov_time INT mov_lang VARCHAR (15) mov_dt_rel DATE mov_rel_country VARCHAR(5) gen_id INT dir_id INT Indexes genre id INT gen_title VARCHAR(10) Indexes H rating rev_id INT mov_id INT rev_rating DECIM Indexes PRIMARY fk_mov_rating reviewer id INT rev_name VARCH Indexes ● Show the most recently released movie for each director. Include only movies released in the XXI century. Order by year descending and movie title ascending. Display movie title and release year (Use the same column names displayed in the image below). Movie Movie Avatar Aliens The Hurt Locker Back to the Future Trainspotting Selma Avatar Slumdog Millionaire The Hurt Locker The Prestige Beyond the Sea American Splendor Donnie Darko Spirited Away Show movies below the average duration for each director. Show only movies in English language. Order by duration descending. Display movie title, duration, language, and genre (Use the same column names displayed in the image below). Released 2014 2009 2008 2008 2006 2004 2003 2001 2001 Duration 162 137 131 116 94 Language Released Genre English 2009 English 1986 English 2008 English 1985 English 1996 Adventure Action Thriller Mystery Drama Use a correlated subquery in each problem. Use the following EER diagram as a reference: director id INT dir_firstName VARCHAR(30) +1- dir_lastName VARCHAR(30) Indexes movie id INT mov_title VARCHAR (35) mov_year INT mov_time INT mov_lang VARCHAR (15) mov_dt_rel DATE mov_rel_country VARCHAR(5) gen_id INT dir_id INT Indexes genre id INT gen_title VARCHAR(10) Indexes H rating rev_id INT mov_id INT rev_rating DECIM Indexes PRIMARY fk_mov_rating reviewer id INT rev_name VARCH Indexes ● Show the most recently released movie for each director. Include only movies released in the XXI century. Order by year descending and movie title ascending. Display movie title and release year (Use the same column names displayed in the image below). Movie Movie Avatar Aliens The Hurt Locker Back to the Future Trainspotting Selma Avatar Slumdog Millionaire The Hurt Locker The Prestige Beyond the Sea American Splendor Donnie Darko Spirited Away Show movies below the average duration for each director. Show only movies in English language. Order by duration descending. Display movie title, duration, language, and genre (Use the same column names displayed in the image below). Released 2014 2009 2008 2008 2006 2004 2003 2001 2001 Duration 162 137 131 116 94 Language Released Genre English 2009 English 1986 English 2008 English 1985 English 1996 Adventure Action Thriller Mystery Drama
Expert Answer:
Answer rating: 100% (QA)
I see that youve shared images containing an Enhanced EntityRelationship EER diagram of a movie database as well as directions for SQL queries youd li... View the full answer
Related Book For
Essentials of Database Management
ISBN: 978-0133405682
1st edition
Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman
Posted Date:
Students also viewed these databases questions
-
Shaw Company has the following account balances: Receivables $ 1 0 0 , 0 0 0 Inventory 1 5 0 , 0 0 0 Land 1 0 0 , 0 0 0 Building net 2 5 0 , 0 0 0 Liabilities 1 0 0 , 0 0 0 Common stock 1 0 0 , 0 0 0...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The following transactions for Kramer Corporation occurred during December of the current year. Follow the step-by-step instructions to enter the transactions, process the adjusting entries, and...
-
The General Auditors Office (GAO) of ABC jurisdiction issued a report on the XYZ Electric Cooperative, a large member-owned utility. This report reviewed the work of MNO Consulting. MNO found...
-
For the beam and loading shown, (a) Derive the equations of the shear and bending-moment curves, (b) Draw the shear and bending-moment diagrams, (c) Determine the magnitude and location of the...
-
The service life (in hours) of a semiconductor has an approximate exponential failure time distribution. Ten semiconductors are placed on life test until four fail. The failure times for these four...
-
The planning matrix from a $2^{k-p}$ design is below. The four factors investigated are A, B, C, and D. TABLE 6.13 : Planning Matrix for Exercise 6.16 b. What is the defining relation? What is the...
-
Presented below are the purchases and cash payments journals for Rosalez Co. for its first month of operations. In addition, the following transactions have not been journalized for July. The cost of...
-
The total factory overhead for Big Light Company is budgeted for the year at $739,820. Big Light manufactures two different products: night lights and desk lamps. Night lights are budgeted for 19,700...
-
MSK Construction Company contracted to construct a factory building for $525,000. Construction started during 20X1 and was completed in 20X2. Information relating to the contract follows: Required:...
-
Make a presentation on the following: 1. Business Plan definition, brief explanation and applications 2. Business case Vs Business Plan (a) compare (b)contrast 3. Business Case Template 4. For the...
-
Write log3 (81y) as a sum.
-
Lexington Garden Supply paid $160,000 for a group purchase of land, building, and equipment. At the time of the acquisition, the land had a market value of $85,000, the building $51,000 and the...
-
An oil well cost $2.090.000 and is calculated to hold 350,000 barrels of of There is no residual value What journal entry is needed to record the expense for the extraction of 56.000 barrels of oil...
-
You work for a nuclear research laboratory that is contemplating leasing a diagnostic scanner (leasing is a common practice with expensive, high-tech equipment). The scanner costs $5,100,000 and...
-
In analyzing a new potential business MacDonald Publishing's financial staff is estimating an initial capital expenditure of $6 million. This equipment will be depreciated according to the MACRS 3...
-
When exposed to sodium hydroxide, Aspartame can undergo saponification. Draw the expected product of the reaction. Then, using pKa values for the 1 fully protonated forms of aspartic acid (pka's 1.9,...
-
What steps must a business take to implement a program of social responsibility?
-
Great Lakes Insurance would like to implement a relational database for both its in-house and outside agents. The outside agents will use notebook computers to keep track of customers and policy...
-
Within which clauses of an SQL statement can a derived table be defined?
-
Explain what can be done with primary keys to eliminate key ripple effects as a database evolves.
-
Show that the group \(D_{3}\) has two 1D irreps in addition to the 2D irrep found in Problem 5.6 , and construct the character table. Derive the two-dimensional matrix representation Data from...
-
The matrix representation of \(\mathrm{C}_{3 \mathrm{v}}\) given in Eq. (5.14) was constructed with respect to the particular coordinate system defined by the unit vectors \(\boldsymbol{e}_{1}\) and...
-
Prove that the action of the symmetry operations \(\sigma_{b}\) and \(\sigma_{c}\) on the basis vectors \(\boldsymbol{e}_{1}\) and \(\boldsymbol{e}_{2}\) in Fig. 5.10 are given by the matrix...
Study smarter with the SolutionInn App