UPDATE CUST_T
FROM (SELECT A.CUST_ID,A.CUST_DT
FROM CUST_T B
INNER JOIN
CUST__HIER A
ON B.LAST_CUST_ID = A.CUST_ID) UPD1
SET
CASE WHEN IMMED_CUST_DT = '9999-12-31' THEN IMMED_CUST_DT end =UPD1.CURR_CUST_DT
I am getting error with the updaet syntax.
Forums: