Consider the following two tables:
DANCE:
SNo Name Class 1 Aastha 7A 2 Mahira 6A 3 Mohit 7B 4 Sanjay 7A
MUSIC:
SNo Name Class 1 Mehak 8A 2 Mahira 6A 3 Lavanya 7A 4 Sanjay 7A 5 Abhay 8A
Arrange the following operations when performed on the above two tables, in the increasing order of their cardinality in the corresponding result set.
A. DANCE U MUSIC
B. DANCE ∩ MUSIC
C. MUSIC - DANCE
D. DANCE X MUSIC
Consider the following two tables:
DANCE:
| SNo | Name | Class |
|---|---|---|
| 1 | Aastha | 7A |
| 2 | Mahira | 6A |
| 3 | Mohit | 7B |
| 4 | Sanjay | 7A |
MUSIC:
| SNo | Name | Class |
|---|---|---|
| 1 | Mehak | 8A |
| 2 | Mahira | 6A |
| 3 | Lavanya | 7A |
| 4 | Sanjay | 7A |
| 5 | Abhay | 8A |
Arrange the following operations when performed on the above two tables, in the increasing order of their cardinality in the corresponding result set.
A. DANCE U MUSIC
B. DANCE ∩ MUSIC
C. MUSIC - DANCE
D. DANCE X MUSIC
Solution
✅ Correct Option: 1
Two tuples are the same only if all their attributes match. The common tuples are (2, Mahira, 6A) and (4, Sanjay, 7A).
| Operation | Working | Cardinality |
|---|---|---|
| B. DANCE ∩ MUSIC | Only the 2 common tuples | 2 |
| C. MUSIC - DANCE | 3 | |
| A. DANCE U MUSIC | 7 | |
| D. DANCE X MUSIC | 20 |
Increasing order: , that is B, C, A, D.
Union removes duplicates, so its cardinality is , while the Cartesian product multiplies the cardinalities.
Related questions:
2025: 16 May Shift 1
2025: 14 May Shift 1
2026: 13 May Shift 2
2025: 27 May Shift 2
