Which two statements are true about the ORDER BY clause when used with a SQL statement containing a SET operator such as UNION?
Which two statements are true about the ORDER BY clause when used with a SQL statement containing a SET operator such as UNION?
When using the ORDER BY clause with a SQL statement containing a SET operator such as UNION, column positions must be used, or column names from the first SELECT statement in the compound query are recognized. This ensures that the result set is ordered effectively as the ORDER BY clause does not support individual sorting for each SELECT statement within the compound query. Therefore, options A and B are true.
BD correct!