QuestionQ61

VerifiedUsing DML and Transaction Control Statements

Review the structures of the following two tables:

Question Image

Which two queries execute successfully?

Choose two
Explanation

Oracle set operations require corresponding select-list expressions to have the same count and to belong to compatible data type groups; Oracle does not implicitly convert between character and numeric groups. UNION ALL in C has two compatible expressions in each query, and the untyped NULL is compatible with the corresponding timestamp expression. D has three corresponding expressions; the character columns are compatible despite differing lengths, and DATE and TIMESTAMP are datetime expressions. Oracle Database SQL Language Reference: The Set Operators

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!