Question: 3. Given your relational schema, provide the SQL to perform the following queries. If your schema cannot provide answers to these queries, revise your ER
3. Given your relational schema, provide the SQL to perform the following queries. If your schema cannot provide
answers to these queries, revise your ER Model and your relational schema to contain the appropriate
information for these queries. These queries should be provided in a plain text file named
WorksheetTwoSimpleQueries.txt:
a.
Find the titles of all tracks by ARTIST released before YEAR
b. Give all the movies and their date of their checkout from a single patron (you choose how to designate
the patron)
c.
List all the albums and their unique identifiers with less than 2 copies held by the library.
d. Give all the patrons who checked out a movie by ACTOR and the movies they checked out.
e. Find the total number of albums checked out by a single patron (you choose how to designate the
patron)
f.
Find the patron who has checked out the most videos and the total number of videos they have checked
out.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
