select * into #table1 from (
select
49 rowid, 7373194 id, 3 ProdType, 200 Amount , 180 Qty union all select
49 , 106049 , 2 , 0 , 180 union all select
1096 , 5008960 , 1 , 0 , 120 union all select
1096 , 108891 , 2 , 0 , 120 union all select
1096 , 6627903 , 1 , 0 , 250 union all select
1096 ...