Back Practice ↓

Related Practice & In-Depth Concepts

↑ Read lesson

Task:The analytics team wants to see day-over-day growth. Write a query that returns the `date`, the `total_revenue`, and a column named `previous_day_revenue`. Use the `LAG()` function to fetch the revenue from the previous day, ordered by `date` ascending.
SQL Query Editor
No results returned. Press Run Query (or Cmd/Ctrl + Enter) to execute.