Introduction
LEAD and LAG
FIRST_VALUE, LAST_VALUE, NTH_VALUE
16. FIRST_VALUE(x) - exercise
Revision

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.

Console

Code editor

Result

TableConsole