Introduction
Simple OVER()
PARTITION BY
12. PARTITION BY – Exercise 2
Ranking functions
Window frame
Analytic functions
ORDER BY PARTITION BY
Order of evaluation
Summary

Instruction

That's true, of course. Let's move on to more difficult examples!

Exercise

For each distinctive movie, show the title, the average customer rating for that movie, the average customer rating for the entire genre and the average customer rating for all movies.

Stuck? Here's a hint!

Here, join two tables: review and movie. You will need to partition by the movie_id and by genre.

Console

Code editor

Result

TableConsole