GATE DA 2026, Q.60: Accounts with at least as many richer as poorer accounts
The question
Account(AccNo, Balance) = (A1, 5000), (A2, 5000), (A3, 10000), (A4, 15000), (A5, 18000). How many rows does the query return?
SELECT AccNo FROM Account AS A
WHERE (SELECT COUNT(*) FROM Account AS B
WHERE A.Balance < B.Balance) >=
(SELECT COUNT(*) FROM Account AS C
WHERE A.Balance > C.Balance)Checking your access…
The answer and full solution are in the GATE DA past-paper pack. All 195 questions from 2024, 2025 and 2026, each solved step by step and checked against the official key. ₹499, lifetime access.
What's in the pack · 60 questions are free to try.
Unlock this solution and every other question. ₹499, one payment, lifetime access.
Could not load the solution. Refresh the page, or email hello@gradientlab.dev.
Source: official GATE DA 2026 question paper and answer key (IIT Guwahati). The question is lightly reworded; every number and option is kept.