The day the position closed

SQL

The day the position closed

Zerodha SQL Interview Question
hardPremium

About this question

A hard SQL question from Zerodha data analyst and business analyst interviews about the day a client's position in a stock first reaches zero. It tests running totals, window functions and first occurrence of a condition.

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