select * from a
union all
select * from b