Which two statements are true about the order by clause when used with a sql statement containing a set operator such as union?
Correct Answer: A,D
A). True, when using the ORDER BY clause with set operators like UNION, you can refer to the results by column positions. This allows for consistent sorting behavior across potentially heterogeneous SELECT statements.D. True, only the column names or positions from the first SELECT statement are recognized in the ORDER BY clause when used with set operators like UNION, as the result set is treated as if it originated from the first SELECT structure.
References:
* Oracle documentation on ORDER BY with set operators: Oracle Database SQL Language Reference
* Explanation of ORDER BY usage: Oracle SQL Tips
Top of Form