What is the main disadvantage of using UNION ALL over UNION in SQL?
16 views
- Slower for exact matches
- Eliminates duplicates
- Does not remove duplicates, leading to possible redundancy (Correct Answer)
- Cannot combine tables with different structures
Explanation
UNION ALL preserves duplicates, which may result in redundant rows if uniqueness is required.