you've to use seperate insert statements for that
insert into table3(id,name,ref,amount) select id,name,ref,amount from table where name = 'B'
insert into table4(id,name,ref,amount) select id,name,ref,amount from table where name = 'C'
...
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/