Con some clever sole point out the error in the following delete script please:
delete from subscriptionmembers
inner join contacts on Contacts.contactid = subscriptionmembers.contactid
where
contacts.categorycode in ('CPAT','NMP','PAT','DEN','PRAC','DOC','TEA')
I get the error
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'inner'.
delete from subscriptionmembers
inner join contacts on Contacts.contactid = subscriptionmembers.contactid
where
contacts.categorycode in ('CPAT','NMP','PAT','DEN','PRAC','DOC','TEA')
I get the error
Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'inner'.