programming-examples/sql/SQLMovieDatabase/33. Write a query in SQL to find the names of all reviewers who rated the movie American Beauty.sql

6 lines
289 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*33. Write a query in SQL to find the names of all reviewers who rated the movie American Beauty. */
SELECT DISTINCT reviewer.rev_name
FROM reviewer, rating, movie
WHERE reviewer.rev_id = rating.rev_id
AND movie.mov_id = rating.mov_id
AND movie.mov_title = 'American Beauty';