
Price moved since last trade
mediumSQL
Price moved since last trade
mediumPremium
About this question
A medium SQL question from Zerodha data analyst and business analyst interviews about how far a price moved since a client last traded it. It tests window functions, LAG within a partition and price change calculations.
The full question, its data and the solution are part of Premium, along with every other question in the library.
- The full question and its datasets
- The editor with instant grading
- A worked solution and common mistakes
Free questions on sql
Practice the same ground now, at no cost.