programming-examples/sql/SQLMovieDatabase/25. Write a query in SQL to find the movie title, year, date of release, director and actor for those movies which reviewer is unknown.sql
2019-11-18 14:05:53 +01:00

14 lines
566 B
SQL

/*25. Write a query in SQL to find the movie title, year, date of release, director and actor for those movies which reviewer
is unknown.*/
SELECT mov_title, mov_year, mov_dt_rel, dir_fname, dir_lname,
act_fname, act_lname
FROM movie a, movie_direction b, director c,
rating d, reviewer e, actor f, movie_cast g
WHERE a.mov_id=b.mov_id
AND b.dir_id=c.dir_id
AND a.mov_id=d.mov_id
AND d.rev_id=e.rev_id
AND a.mov_id=g.mov_id
AND g.act_id=f.act_id
AND e.rev_name IS NULL;