I am trying to insert multiple rows into my TherapistRates table from my serviceLink table. I need to tack a therapistID onto each row. However, SQL is not allowing me to add a value when inserting multiple rows. How do I get around this?
Here is my query:
INSERT INTO TherapistRates (therapistID, serviceType)
VALUES (@therapistID, (SELECT (serviceID) FROM serviceLink WHERE TherapistTypeID = @therapistID)
Why not:
NEW VERSION (from comment on other answers)