GATE CS 2012 · Question 50 · 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 relational algebra expression contain? Assume that the schema of A ∪ B is the same as that of A.
(A ∪ B) _(A.Id > 40 ∨ C.Id < 15) C
| 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) 7
- (B) 4
- (C) 5
- (D) 9
Answer
Answer (A)
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