Given Two Tables Cricket and Football:
Table 1: Cricket
Rno Name Class 1 Shashank 11 2 Shobit 12 3 Rinku 10 4 Shivam 11
Table 2: Football
Rno Name Class 3 Rinku 10 4 Shivam 11
What will be output for the operation Cricket - Football?
Given Two Tables Cricket and Football:
Table 1: Cricket
| Rno | Name | Class |
|---|---|---|
| 1 | Shashank | 11 |
| 2 | Shobit | 12 |
| 3 | Rinku | 10 |
| 4 | Shivam | 11 |
Table 2: Football
| Rno | Name | Class |
|---|---|---|
| 3 | Rinku | 10 |
| 4 | Shivam | 11 |
What will be output for the operation Cricket - Football?
Solution
Set difference (Cricket - Football) returns the tuples that are present in Cricket but not in Football.
Rows (3, Rinku, 10) and (4, Shivam, 11) appear in both tables, so they are removed. The remaining rows are (1, Shashank, 11) and (2, Shobit, 12).
Option 2: this is the intersection (Cricket ∩ Football), not the difference.
Options 3 and 4: each mixes one row that is only in Cricket with one row that is in both tables, so each wrongly keeps a common row.
Related questions:
2025: 15 May Shift 2
2026: 13 May Shift 2
2026: 21 May Shift 1
2025: 22 May Shift 1
2025: 20 May Shift 1
2025: 13 May Shift 2