Bij het invoegen uit een SELECT heb je geen VALUES-clausule nodig. Unieer eenvoudig de twee resultatensets en voeg ze in de tabelvariabele in.
INSERT INTO @table(a, b, c, d) SELECT a, b, c, d FROM table1 UNION SELECT a, b, c, d FROM table2;SQL Server ondersteunt ook INSERT INTO Table(Col1, Col2) SELECT Col1, Col2 FROM OtherTable. Een unie is gewoon een andere resultatenset.