Introduction
Quick Refresher
PARTITION BY ORDER BY with Ranking
11. More Practise Time!
PARTITION BY ORDER BY with Window Frames
Using PARTITION BY ORDER BY with Analytical Functions
Summary and Review

Instruction

Perfect! Another one on the way.

Exercise

For each sales day, show the Day, the StoreId of the best store in terms of the Revenue on that Day, and that store's Revenue.

Stuck? Here's a hint!

Remember to use a temporary table (CTE).

Use RANK() OVER(PARTITION BY Day ORDER BY Revenue DESC).