🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.UNION removes duplicate rows; UNION ALL keeps them
  2. B.UNION ALL removes duplicates
  3. C.They are the same
  4. 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 →