Trying to update a field in a table that gets it's value from another table providedcertain conditions are met, geeting an error, noted below.
update cba_workdb.MD_ADVANTAGE_TOTAL_CLAIMS_2002 set BRAND_FEE =
cba_workdb.ADVANTAGE_RATES_AND_FEES.BRAND_FEE
where cba_workdb.MD_ADVANTAGE_TOTAL_CLAIMS_2002.PHARMACY_ACCOUNT_NBR in (select ACCOUNT_NBR from
cba_proddb.PHARMACY_MASTER where
superchain_nbr in('00164','00209')and account_nbr in(select PHARMACY_ACCOUNT_NBR from
cba_workdb.ADVANTAGE_RATES_AND_FEES));
ERROR: CLI execute error: [NCR][Teradata RDBMS] Duplicate row error in CBA_WorkDB.MD_ADVANTAGE_TOTAL_CLAIMS_2002.
Michael
update cba_workdb.MD_ADVANTAGE_TOTAL_CLAIMS_2002 set BRAND_FEE =
cba_workdb.ADVANTAGE_RATES_AND_FEES.BRAND_FEE
where cba_workdb.MD_ADVANTAGE_TOTAL_CLAIMS_2002.PHARMACY_ACCOUNT_NBR in (select ACCOUNT_NBR from
cba_proddb.PHARMACY_MASTER where
superchain_nbr in('00164','00209')and account_nbr in(select PHARMACY_ACCOUNT_NBR from
cba_workdb.ADVANTAGE_RATES_AND_FEES));
ERROR: CLI execute error: [NCR][Teradata RDBMS] Duplicate row error in CBA_WorkDB.MD_ADVANTAGE_TOTAL_CLAIMS_2002.
Michael