Skip to main contentSkip to solution

Consider the following tables 'BADMINTON' and 'CRICKET'.

BADMINTON

SNONAMECLASS
1RAM8A
2MOHAN7A
3SOHAN8A

CRICKET

SNONAMECLASS
1RAM8A
2REETA9A
3SOHAN8A
4MEETA10A

Select the correct output of the following statement: "BADMINTON minus CRICKET"

Solution

✅ Correct Option: 3

BADMINTON minus CRICKET (set difference) returns the rows that are in BADMINTON but not in CRICKET. A row is removed only if all its columns match a row in CRICKET.

BADMINTON rowIn CRICKET?Result
1, RAM, 8AYesRemoved
2, MOHAN, 7ANoKept
3, SOHAN, 8AYesRemoved

The output is the single row 2, MOHAN, 7A.


Option 1: these are the common rows, which is the intersection, not the difference.

Options 2 and 4: REETA and MEETA are only in CRICKET, so they would appear in CRICKET minus BADMINTON, not BADMINTON minus CRICKET.

Keyboard Shortcuts

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