Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
727 views
in Computer by (41.3k points)
closed by

Consider the following relations A, Band C:

A

Id Name Age
12 Arun 60
15 Shreya 24
99 Rohit 11

 

B
Id Name Age
15 Shreya 24
25 Hari 40
98 Rohit 20
99 Rohit 11
C
Id Phone Area
10 220 02
99 2100 01
 

How many tuples does the result of the following SQL query contain? 

SELECT A.Id 

FROM A 

WHERE A.Age > ALL(SELECT B.Age FROM B WHERE B.Name = 'Arun')

(A) 4 

(B)3 

(C)O 

(D) 1

1 Answer

+1 vote
by (44.8k points)
selected by
 
Best answer

Correct option is  (B) 3

As the result of subquery is an empty table, '>ALL' comparison is t rue . Therefore, all the three row id's of A will be selected from table A.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...