GATE 2026 Data Science and Artificial Intelligence question: Let Account be a relation as shown. Account AccNo Balance --- --- A1 5000 A2 5000 A3…
Let Account be a relation as shown.
Account
| AccNo | Balance |
|---|---|
| A1 | 5000 |
| A2 | 5000 |
| A3 | 10000 |
| A4 | 15000 |
| A5 | 18000 |
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)
Show answer
This question is in an all-India live mock that is open now. Its answer appears here when the mock closes.