You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
285 B
SQL

/*47. Write a query in SQL to find the highest-rated movie, and report its title, year, rating, and releasing country. */
SELECT mov_title, mov_year, rev_stars, mov_rel_country
FROM movie
NATURAL JOIN rating
WHERE rev_stars = (
SELECT MAX(rev_stars)
FROM rating
);