Computer Science · SQL Structured Query Language
In SQL, what is the primary operational difference between the UNION and UNION ALL operators?
- 1UNION removes duplicate rows from the combined result set, while UNION ALL retains all rows including duplicates.✓
- 2There is no functional or performance difference between the two operators.
- 3UNION executes faster than UNION ALL because it bypasses sorting.
- 4UNION ALL automatically eliminates duplicate rows, while UNION retains them.
Correct answer
UNION removes duplicate rows from the combined result set, while UNION ALL retains all rows including duplicates.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on SQL Structured Query Language?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · SQL Structured Query Language