Skip to content
Advertisement

Where am I going wrong in my cs50 pset 7 10.sql nested query?

I am currently trying to find the names of all people who have directed a movie that received a rating of at least 9.0 the scheme for these tables is

MY SQL QUERY IS :

This however fails the check50 test, and gives incorrect output. Can anyone help me with where I’m going wrong?

Advertisement

Answer

The spec says (emphasis added)

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.

The query does not filter on the ratings.rating column.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement