Compared with UNION, UNION ALL:
-
A
removes duplicate rows
-
B
sorts the result
-
C
joins tables horizontally
-
D
keeps duplicate rows
Correct answer
Correct answer
D. keeps duplicate rows
15 views
Explanation
UNION removes duplicates and is slower; UNION ALL simply appends the result sets.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ