I am writing the current update SQL
I am trying to update a field but the where requirements are from multiple table. I have tried a join and ON statement, but the error I receive is missing SET keyword
update SHRTCKG
set
SHRTCKG_CREDIT_HOURS = '1',
SHRTCKG_HOURS_ATTEMPTED = '1'
where
SHRTCKG_TERM_CODE = '201809'
and SFRSTCR_PIDM = SHRTCKG_PIDM
and SFRSTCR_CRN = '91643'
and SHRTCKG_CREDIT_HOURS = '0',
and SHRTCKG_HOURS_ATTEMPTED = '0';
I am trying to update a field but the where requirements are from multiple table. I have tried a join and ON statement, but the error I receive is missing SET keyword
update SHRTCKG
set
SHRTCKG_CREDIT_HOURS = '1',
SHRTCKG_HOURS_ATTEMPTED = '1'
where
SHRTCKG_TERM_CODE = '201809'
and SFRSTCR_PIDM = SHRTCKG_PIDM
and SFRSTCR_CRN = '91643'
and SHRTCKG_CREDIT_HOURS = '0',
and SHRTCKG_HOURS_ATTEMPTED = '0';