I'm trying to update table CUST_CLN_A1166_CCLF8_ALIGN with the update statement below:
UPDATE
(
SELECT ALGN.PERSON_ID
, ALGN.BENE_HIC_NUM
, TMP.PERSON_ID
, TMP.NEW_BENE_HIC_NUM
FROM CUST_CLN_A1166_CCLF8_ALIGN ALGN
, EDW_TMP_CCLF8_ALIGN TMP
WHERE ALGN.BENE_KEY = TMP.TMP_BENE_KEY
)
SET ALGN.PERSON_ID = TMP.PERSON_ID
, ALGN.BENE_HIC_NUM = TMP.NEW_BENE_HIC_NUM
;
However; I get the following error:
Error starting at line 1 in command:
UPDATE
(
SELECT ALGN.PERSON_ID
, ALGN.BENE_HIC_NUM
, TMP.PERSON_ID
, TMP.NEW_BENE_HIC_NUM
FROM CUST_CLN_A1166_CCLF8_ALIGN ALGN
, EDW_TMP_CCLF8_ALIGN TMP
WHERE ALGN.BENE_KEY = TMP.TMP_BENE_KEY
)
SET ALGN.PERSON_ID = TMP.PERSON_ID
, ALGN.BENE_HIC_NUM = TMP.NEW_BENE_HIC_NUM
Error at Command Line:12 Column:30
Error report:
SQL Error: ORA-00904: "TMP"."NEW_BENE_HIC_NUM": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
committed.
I've verified all column names, etc. What am I missing?
Thanks in advance.
UPDATE
(
SELECT ALGN.PERSON_ID
, ALGN.BENE_HIC_NUM
, TMP.PERSON_ID
, TMP.NEW_BENE_HIC_NUM
FROM CUST_CLN_A1166_CCLF8_ALIGN ALGN
, EDW_TMP_CCLF8_ALIGN TMP
WHERE ALGN.BENE_KEY = TMP.TMP_BENE_KEY
)
SET ALGN.PERSON_ID = TMP.PERSON_ID
, ALGN.BENE_HIC_NUM = TMP.NEW_BENE_HIC_NUM
;
However; I get the following error:
Error starting at line 1 in command:
UPDATE
(
SELECT ALGN.PERSON_ID
, ALGN.BENE_HIC_NUM
, TMP.PERSON_ID
, TMP.NEW_BENE_HIC_NUM
FROM CUST_CLN_A1166_CCLF8_ALIGN ALGN
, EDW_TMP_CCLF8_ALIGN TMP
WHERE ALGN.BENE_KEY = TMP.TMP_BENE_KEY
)
SET ALGN.PERSON_ID = TMP.PERSON_ID
, ALGN.BENE_HIC_NUM = TMP.NEW_BENE_HIC_NUM
Error at Command Line:12 Column:30
Error report:
SQL Error: ORA-00904: "TMP"."NEW_BENE_HIC_NUM": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
committed.
I've verified all column names, etc. What am I missing?
Thanks in advance.