Skip to main contentSkip to solution

Given Two Tables Cricket and Football:

Table 1: Cricket

RnoNameClass
1Shashank11
2Shobit12
3Rinku10
4Shivam11

Table 2: Football

RnoNameClass
3Rinku10
4Shivam11

What will be output for the operation Cricket - Football?

Solution

✅ Correct Option: 1

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question