Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Simple OVER()
10. OVER() – Exercise 3
PARTITION BY
Ranking functions
Window frame
Analytic functions
ORDER BY PARTITION BY
Order of evaluation
Summary

Instruction

That's it! The last exercise in this section is waiting.

Exercise

Show each single rental: id, rental_period, payment_amount, the average amount paid from all the single rentals ever and the ratio of the two last columns.

Stuck? Here's a hint!

Use AVG() as the aggregate function. In the last column, apply division.