1.

Which clause is used to sort a UNION result as a whole?(a) LIMIT(b) ORDER BY(c) GROUP BY(d) SORTThis question was posed to me in examination.Asked question is from Performing Multiple topic in section Using SQL to Manage Data of MySQL

Answer»

The CORRECT answer is (B) ORDER BY

Easiest explanation: 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.



Discussion

No Comment Found

Related InterviewSolutions