
The day the position closed
hardSQL
The day the position closed
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
Free questions on sql
Practice the same ground now, at no cost.