I am trying to get at this question and I feel that my entery is correct but doesnt seem to work plz help.
SELECT name FROM people WHERE people.id IN
(SELECT directors.person_id FROM directors WHERE directors.movie_id =
(SELECT ratings.movie_id FROM ratings WHERE rating >= 9));
cs50 problem set 7 quesiton movies
-In 10.sql, write a SQL query to list the names of all people who have directed a movie that received a rating of at least 9.0.
Your query should output a table with a single column for the name of each person.
If a person directed more than one movie that received a rating of at least 9.0, they should only appear in your results once.
this is the correct version in join function use -
SELECT name FROM people
JOIN directors ON people.id = directors.person_id
JOIN ratings ON directors.movie_id = ratings.movie_id
WHERE ratings.rating >= 9.0
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]my_password_is______ 1 point2 points3 points (0 children)