Multiple choice technology databases

select min(dummy) from dual order by dummy union all select max(dummy) from dual; O/p:

  1. X

  2. Two rows of value X and X

  3. Error: Not a proper ORDER BY clause

  4. Error: SQL command not properly ended

  5. 1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

ORDER BY cannot appear in the first SELECT of a UNION ALL - it must be at the end of the entire statement. This causes 'SQL command not properly ended'.