Home » MYSQL » MySQL UNION » Question
  1. Which clause is used to sort a UNION result as a whole?
    1. GROUP BY
    2. SORT
    3. ORDER BY
    4. LIMIT
    5. None of these
Correct Option: C

The ‘ORDER BY’ clause is used along with the ‘UNION’ statement to sort a ‘UNION’ result as a whole. It is placed after the last ‘SELECT’ statement which is kept in parentheses.



Your comments will be displayed only after manual approval.