insert into temp table using select in sql server