GATE DA 2026 · Question 60 · Database Management and Warehousing · Numerical answer (NAT) · 2 marks · no negative marks
Let Account be a relation as shown.
Account
Consider the given SQL query.
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)
The number of rows returned by the SQL query is ______ . (Answer in integer )
| AccNo | Balance |
|---|---|
| A1 | 5000 |
| A2 | 5000 |
| A3 | 10000 |
| A4 | 15000 |
| A5 | 18000 |
Answer
Answer 3
Answer from the official GATE DA 2026 answer key.
The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes