Consider the following two relations:
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 in increasing order as per the number of rows they are returning.
A. DANCE U MUSIC
B. DANCE ∩ MUSIC
C. DANCE - MUSIC
D. DANCE X MUSIC
Consider the following two relations:
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 in increasing order as per the number of rows they are returning.
A. DANCE U MUSIC
B. DANCE ∩ MUSIC
C. DANCE - MUSIC
D. DANCE X MUSIC
Solution
✅ Correct Option: 3
Union, intersection and difference compare whole rows (SNo, Name, Class). Only (2, Mahira, 6A) and (4, Sanjay, 7A) appear in both relations, so 2 rows are common.
| Operation | Rows |
|---|---|
| B. DANCE ∩ MUSIC | |
| C. DANCE - MUSIC | |
| A. DANCE ∪ MUSIC | |
| D. DANCE × MUSIC |
B and C both return 2 rows, so the increasing order is B, C, A, D.
Related questions:
2026: 26 May Shift 1
2026: 29 May Shift 1