Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
LEAD and LAG
FIRST_VALUE, LAST_VALUE, NTH_VALUE
16. FIRST_VALUE(x) – exercise
Summary

Instruction

Let's do one more exercise.

Exercise

Show the statistics for website_id = 3. For each row, show the day, the revenue and the revenue on the first day.

Stuck? Here's a hint!

Use FIRST_VALUE(revenue) and sort by the day.