Given:
TableA:
Name Course Prakriti IP Yoshit Maths
TableB:
Name Course Prakriti IP Anmol Painting
Find TableA - TableB:
Given:
TableA:
| Name | Course |
|---|---|
| Prakriti | IP |
| Yoshit | Maths |
TableB:
| Name | Course |
|---|---|
| Prakriti | IP |
| Anmol | Painting |
Find TableA - TableB:
Solution
✅ Correct Option: 2
Set difference (A - B) returns the tuples that are in TableA but not in TableB.
Prakriti, IP appears in both tables, so it is removed. Yoshit, Maths appears only in TableA, so it stays.
| Name | Course |
|---|---|
| Yoshit | Maths |
Option 1: this is TableA itself, which ignores the common row.
Option 3: this is the intersection (A ∩ B), not the difference.
Option 4: this is the union (A ∪ B) with the duplicate removed, and it is also missing no row, so it is wrong for difference.
Related questions:
2026: 20 May Shift 1
2026: 13 May Shift 2
2025: 30 May Shift 2
2025: 16 May Shift 1
