Largest Order So Far

easy
Unit 7 · Window Functions II0/3 to milestone

Return each order's id, order_date, total and max_so_far: the largest order total up to and including this order (in date order, ties by id). Sort by order_date, then id.

Schema

customers(id, name, country, signup_date)
orders(id, customer_id, order_date, total)
#window-functions#running-aggregates1 visible + 1 hidden tests
query.sql · SQLite
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Largest Order So Far · TechGradify