Please consider the following tables:
Here is the query:
Write a query that returns the list of DVDs that belong to owners who own Superman
Here is my solution:
Please let me know if the above query is correct or not.
Code:
Table Name: Person
Person_Id Name
Table Name: DVD
DVD_ID Owner_ID Title
Write a query that returns the list of DVDs that belong to owners who own Superman
Here is my solution:
Code:
SELECT p.name,d.dvd_id
FROM DVD d,Person p
WHERE p.person_id = d.dvd_id
AND Title = 'Superman' ;