Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
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.