In SQL Server 2008, we can use Union/Unino All to put two results together, but I want to add order by for the final result. How can do that?
What I want is something like:
select id1 as id, * from ...
Union All
select id2 as id, * from ...
order by id
Help please. Thanks.