programming-examples/sql/SQLMovieDatabase/20. Write a query in SQL to list all the movies with year, genres, and name of the director.sql

7 lines
282 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*20. Write a query in SQL to list all the movies with year, genres, and name of the director.*/
SELECT mov_title, mov_year, gen_title, dir_fname, dir_lname
FROM movie
NATURAL JOIN movie_genres
NATURAL JOIN genres
NATURAL JOIN movie_direction
NATURAL JOIN director;