Price moved since last trade

SQL

Price moved since last trade

Zerodha SQL Interview Question
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