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’)
| Id | Name | Age |
|---|---|---|
| 12 | Arun | 60 |
| 15 | Shreya | 24 |
| 99 | Rohit | 11 |
| Id | Name | Age |
|---|---|---|
| 15 | Shreya | 24 |
| 25 | Hari | 40 |
| 98 | Rohit | 20 |
| 99 | Rohit | 11 |
| Id | Phone | Area |
|---|---|---|
| 10 | 2200 | 02 |
| 99 | 2100 | 01 |
- (A) 4
- (B) 3
- (C) 0
- (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