Skip to main contentSkip to solution

Given:

TableA:

NameCourse
PrakritiIP
YoshitMaths

TableB:

NameCourse
PrakritiIP
AnmolPainting

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.

NameCourse
YoshitMaths

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.

Keyboard Shortcuts

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