Oracle
1Z0-071 · Question #314
Which two statements are true about the ORDER BY clause when used with a SQL statement containing a SET operator such as UNION? (Choose two.)
The correct answer is B. Each SELECT statement in the compound query can have its own ORDER BY clause. E. Only column names from the first SELECT statement in the compound query are recognized. See the full explanation below for the reasoning.
Question
Which two statements are true about the ORDER BY clause when used with a SQL statement containing a SET operator such as UNION? (Choose two.)
Options
- AEach SELECT statement in the compound query must have its own ORDER BY clause.
- BEach SELECT statement in the compound query can have its own ORDER BY clause.
- CColumn positions must be used in the ORDER BY clause.
- DThe first column in the first SELECT of the compound query with the UNION operator is used by
- EOnly column names from the first SELECT statement in the compound query are recognized.
How the community answered
(37 responses)- A11% (4)
- B81% (30)
- C3% (1)
- D5% (2)
Community Discussion
No community discussion yet for this question.