SELECT Title,MovieId
FROM Movie
WHERE Rating = 'R' OR
Genre like '%drama%'
SELECT Name, MovieId, DateRented FROM Customer,Rents WHERE Customer.CustomerID = Rents.CustomerID
SELECT Title, DateRented
FROM Movie,Customer,Rents
WHERE Movie.MovieId = Rents.MovieId AND
Customer.CustomerID = Rents.CustomerID AND
Customer.Name = 'Randy Wolf'
NOTE: you do NOT need to include the displayed results in your submission; only the SQL statement used.
NOTE: you do NOT need to include the displayed results in your submission; only the SQL statement used.
It may seem that a simple change to your answer from (3c) might suffice for this question, but if you try such a simple change, you will probalby see that it does not work (do you understand why not?).
Instead, we will approach this in two stages: