← Quiz: Subqueries and Views: all 10 questions
Quiz: Subqueries and Views · Question 2 of 10
What is the difference between UNION and UNION ALL?
What is the difference between UNION and UNION ALL?
- A.UNION removes duplicate rows; UNION ALL keeps them
- B.UNION ALL removes duplicates
- C.They are the same
- D.UNION works only on two tables
Answer & explanation
Correct answer: UNION removes duplicate rows; UNION ALL keeps them
UNION de-duplicates (extra work); UNION ALL just appends.
Can you get the rest right without peeking?
Take the timed Quiz: Subqueries and Views quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →