SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming that ID is an identity column:
ID
INSERT INTO TheTable(HospitalID, Email, Description) SELECT 32, Email, Description FROM TheTable WHERE HospitalID <> 32
Try to avoid loops with SQL. Try to think in terms of sets instead.