programming-examples/sql/SQLMovieDatabase/14. Write a query in SQL to find the name of movie and director (first and last names) who directed a movie that casted a role for 'Eyes Wide Shut'.sql

9 lines
357 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*14. Write a query in SQL to find the name of movie and director (first and last names) who directed a movie that casted a
role for 'Eyes Wide Shut'.*/
SELECT dir_fname, dir_lname, mov_title
FROM director
NATURAL JOIN movie_direction
NATURAL JOIN movie
NATURAL JOIN movie_cast
WHERE role IS NOT NULL
AND mov_title='Eyes Wide Shut';