sql server insert into select with cte