0

请帮助我在 Teradata 中工作,我收到错误消息“目标行已由多个源行更新”,这可能是什么原因造成的?这是我正在使用的代码

UPDATE USS_MISC_STAGE.RXA_RX_CLAIM_PRSCRBR_XREF
FROM
(
SELECT DISTINCT
CLAIM_PHARM_ID_RX,
    PAYER_BOX, FILL_DATE, CLAIM_STATUS, PRESCRIBER_ID, PRESCRIBER_FIRST_NAME,
    PRESCRIBER_LAST_NAME, PRESCRIBER_ADDRESS1, PRESCRIBER_ADDRESS2,
    PRESCRIBER_STATE, PRESCRIBER_CITY, PRESCRIBER_ZIP_CODE, PRESCRIBER_PHONE,
    PRESCRIBER_FAX
FROM USS_LOAD_LOG_TABLES.RXA_RX_CLAIM_PRSCRBR_XREF_HIS) RRCPXP
 SET
PRSCRBR_ADDR_LN_1 = PRESCRIBER_ADDRESS1,
PRSCRBR_CITY_NM = PRESCRIBER_CITY,
PRSCRBR_FST_NM = PRESCRIBER_FIRST_NAME,
PRSCRBR_LAST_NM = PRESCRIBER_LAST_NAME,
PRSCRBR_ST_CD = PRESCRIBER_STATE,
PRSCRBR_ZIP_CD = PRESCRIBER_ZIP_CODE 
WHERE USS_MISC_STAGE.RXA_RX_CLAIM_PRSCRBR_XREF.CLAIM_ID  = RRCPXP.CLAIM_PHARM_ID_RX
AND USS_MISC_STAGE.RXA_RX_CLAIM_PRSCRBR_XREF.ADJUD_DT > '2019-05-01'
AND USS_MISC_STAGE.RXA_RX_CLAIM_PRSCRBR_XREF.PRSCRBR_NPI = RRCPXP.PRESCRIBER_ID;
4

0 回答 0