Below is the section of code that is getting an error. I am not sure why I am getting an error.
Delete from TblProcessCurrency C
where Not Exists (
Select PRCSchedule
from tblProcess P
where P.PrcSchedule = C.PCXSchedule and P.PRCOlsn = C.PCXOlsn and P.PRCRelease = C.PCXRelease
);
and here is the error I am getting
Msg 102, Level 15, State 1, Line 32
Incorrect syntax near 'C'.