sql insert into table with select case values