Skip to main contentSkip to solution

Which operation is used to get tuples which are in the first table, but not in the second table?

Solution

✅ Correct Option: 1

MINUS (set difference, written R−SR - S in relational algebra) returns the tuples present in the first table but absent from the second. In SQL it is written as MINUS in Oracle and EXCEPT in standard SQL and others.


INTERSECT: returns only the tuples common to both tables, not those exclusive to the first.

UNION: returns all tuples from both tables, with duplicates removed.

CARTESIAN PRODUCT: pairs every tuple of the first table with every tuple of the second, so it does not compare tuples for presence or absence.

Set difference is not commutative: R−S≠S−RR - S \neq S - R in general.

Keyboard Shortcuts

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