Use UNION ALL based on sample data:
SELECT * FROM TABLE1 UNION ALL SELECT * FROM TABLE2
UNION removes duplicates - if both tables have a row whose values ββwere "rowx, 1", the query returns one row, not two. It also makes UNION slower than UNION ALL , because UNION ALL does not remove duplicates. Know your data and use it appropriately.
OMG Ponies
source share