Oracle Database Administration I — Question 49

Which two statements are true regarding the UNION and UNION ALL operators? (Choose two.)

Answer options

Correct answer: B, E

Explanation

The correct answer B is true because both SELECT statements must have the same number of columns for the UNION and UNION ALL operators to work. Option E is also correct because NULLS are included in the duplicate checking process. Options A, C, and D are incorrect as UNION ALL does not eliminate duplicates, column names do not need to match, and the output is not automatically sorted by UNION ALL.