EasyConceptSQL
When should you pick UNION ALL over UNION when stacking query results?
What a good answer covers
UNION removes duplicate rows from the combined result, which requires extra work. UNION ALL simply appends rows and is faster, so use it when duplicates are impossible or wanted.
PreviousWhat does DISTINCT do and what does it cost on a large table?Next How does NULL behave in comparisons and what is IS NULL for?