db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

row_number

A window function computes over related rows without collapsing them. PARTITION BY makes groups, ORDER BY orders inside each.

task

Number each customer's orders by date (oldest is 1, ties by order_id): columns order_id and the number.

hints