GATE 1994
April 18, 2024
Sorting
April 18, 2024
GATE 1994
April 18, 2024
Sorting
April 18, 2024

Database-Management-System

Question 278

Consider the above tables A, B and C. How many tuples does the result of the following SQL query contains?

SELECT A.id

FROM A

WHERE A.age > ALL (SELECT B.age

FROM B

WHERE B.name – “Arun”)

A
3
B
0
C
1
D
4
Question 278 Explanation: 
All condition with empty return true

Also the result of subquery is empty So all id of A will be selected.

Correct Answer: A
Question 278 Explanation: 
All condition with empty return true

Also the result of subquery is empty So all id of A will be selected.

Leave a Reply

Your email address will not be published. Required fields are marked *