...it doesnt work: heres the result:
--------------
declare @test_ab table( code int ,Names varchar(128),status varchar(128))
insert @test_ab
select * from
(select 1 as Code, 'Name1' as Names, 'Good' as status
UNION all select 1 as Code, 'Name1' as Names, 'Bad' as status
UNION all select 2...