Skip to main contentSkip to solution

A UNION query on relations:

Solution

✅ Correct Option: 3

UNION merges the result sets of two or more SELECT queries into one result. The queries must return the same number of columns, with compatible data types in matching positions. Duplicate rows are removed unless UNION ALL is used.


Options 1 and 4: UNION is not limited to two queries, since any number of SELECTs can be chained with repeated UNION.

Options 2 and 4: the SELECTs cannot have different numbers of columns, because the combined rows would not line up.

Keyboard Shortcuts

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