Accounts That Went Negative
Medium
Reconciliation & Balances
Return accounts whose running balance fell below zero at any point, with the lowest balance reached. Order by account.
Table schema
Transactions(id INT PRIMARY KEY, account VARCHAR(5), amount INT)Sample data
id | account | amount
1 | A | 100
2 | A | -30
3 | B | 50
4 | A | -90
5 | B | -20
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.