GATE CS 2012 · Question 51 · Databases · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Common Data for Questions 50 and 51:
Consider the following relations A, B and C:
A
B
C
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’)

IdNameAge
12Arun60
15Shreya24
99Rohit11
IdNameAge
15Shreya24
25Hari40
98Rohit20
99Rohit11
IdPhoneArea
10220002
99210001
  1. (A) 4
  2. (B) 3
  3. (C) 0
  4. (D) 1
Answer

Answer (B)

Answer from the official GATE CS 2012 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes