I'm trying to write a stored procedure in SQL that will :
Make a select query from table1 that will return multiple values Insert new values in table2 (1 new record in table2 for each record returned by the select on table1).
I would use a foreach in C# but I know that SQL doesn't work that way. What's the correct way of doing this?
Thanks!