MERGE INTO stbl_pcop_dafmaster_av x
using
( select rsn,mdn,sdca,sdca,sdca,sdca,sdca,sdca,sdca,sdca,sd ca,sdca,sdca,sdca,sdca,sdca,sdca,sdca,sdca,sdca,sd ca,sdca,sdca,sdca,sdca,sdca
from stbl_phonegen_new where MDN in
(select a.mdnnumber from stbl_pcop_dafmaster_av a
where a.cafnumber in (select b.cafnumber from stbl_dafxml_export_summary b where repush_flag='1' and pg_status='1' and pg_msg ='MDN RSN Mismatch') )
)
y on (x.mdnnumber = y.mdn)
when matched then
update set x.rsnnumber = y.rsn
WHEN NOT MATCHED THEN
INSERT
VALUES ('0','0','0','0','0','0','0','0','0','0','0','0',' 0','0','0','0','0','0','0','0','0','0','0','0','0' ,'0')
WHILE EXECUTING THIS STATEMENT I M GETTING ERROR LIKE
The following error has occurred:
ORA-00918: column ambiguously defined
PLEASE HELP
I NEED TO UPDATE RSNNUMBER FIELD OF MY DAFMASTER TABLE FOR THOSE ROWS THAT HAVE MDNNUMBER SAME AS MDN OF PHONEGEN TABLE WITH THE CONDITIONS AS DEFINED ( I AM RUNNING IT USING TOAD TOOL)
PLEASE GUIDE ME ON THE SAME