cs50/6.sql

4 lines
77 B
SQL

SELECT AVG(rating)
FROM ratings
JOIN movies ON ratings.movie_id = movies.id;