Oracle Database SQL — Question 29

Which two are true about a SQL statement using SET operators such as UNION? (Choose two.)

Answer options

Correct answer: A, E

Explanation

Answer A is correct because when using UNION, the data type groups of corresponding columns must match. Answer E is also correct as the number of columns must be the same, although their names do not have to match. The other options are incorrect because they impose additional requirements on the names or types that are not necessary for a UNION operation.