InterviewSolution
Saved Bookmarks
| 1. |
The keyword used with UNION that retains duplicate rows is ______________(a) ALL(b) NARROW(c) STRICT(d) DISTINCTThis question was posed to me by my college professor while I was bunking the class.Origin of the question is Managing MySQL User Accounts topic in chapter General MySQL Administration of MySQL |
|
Answer» RIGHT CHOICE is (a) ALL To elaborate: The keyword ‘ALL’ used along with ‘UNION’ is not SYNONYMOUS with just the ‘UNION’ statement. It PRODUCES the duplicate rows, if they EXIST, from the combination of the two tables in the SELECT query. |
|