Im trying to write a query that updates a date only if the group im updating has a LINE_CD of 50. Would i do it like this?
UPDATE EMPLOYER_ADDL SET EMPLOYER_A
Assuming that GR_NBR is a PK and distinct in EMP_Plan_line_Info:
UPDATE EA SET GTL_UW_APPRV_DT = DNTL_UW_APPRV_DT FROM EMPLOYER_ADDL EA INNER JOIN EMP_PLAN_LINE_INFO EP ON EP.GR_NBR = EA.GR_NBR AND EP.LINE_CD = 50