Hi
I have below query and want to save results in New Table
Select Code ,name ,Quantity,Value from Tbl1
union all
select Code,Name,Quantity,Value from tbl2
Thanks
Hi,
Try:
with CTE_Union as ( Select Code ,name ,Quantity,Value from Tbl1 union all select Code,Name,Quantity,Value from tbl2 ) select * into TblNew from CTE_Union
Hope this help