Rainbow Deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
ROWS
10. Rows – exercise 3
RANGE
Default window frame
Summary

Instruction

Amazing performance! The last exercise.

Exercise

Now, for each single_order, show its placed date, total_price, the average price calculated by taking 2 previous orders, the current order and 2 following orders (in terms of the placed date) and the ratio of the total_price to the average price calculated as before.

Stuck? Here's a hint!

Use ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING.