Running Maximum Price
Medium
Window Frames
For each day return the price and the highest price seen up to and including that day. Order by day.
Table schema
Prices(day INT PRIMARY KEY, price INT)Sample data
day | price
1 | 5
2 | 3
3 | 8
4 | 6
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.