Question 60

DANAT2 marksNeeds review
Let Account be a relation as shown.
AccNo
Balance
A1
5000
A2
5000
A3
1000
A4
1500
A5
1800
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)

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

EXPLORE & PRACTISE

Paper and topic context

See where this question comes from and choose what to practise next.

2026DA

GATE DA 2026 · Paper 1

Data Science and Artificial Intelligence · Original paper archive

Section
Data Science and Artificial Intelligence
Question type
Numerical answer (NAT)
Marks
2 marks

Practise related topics

Explore more previous year questions using this question’s imported topic tags.

data science

GATE DA previous year questions

artificial intelligence

GATE DA previous year questions

computing

GATE DA previous year questions

database management warehousing

GATE DA previous year questions

Database Management and Warehousing

GATE DA previous year questions

Comments

Ask a question, share your approach, or help someone understand.

Log in to view the discussion

You’re not logged in. Log in or create an account to see discussions and add comments.