cuetzpalin
Programmer
I have 2 tables:
p2p_transfer_in_upd
el_transfer_in_upd_temp
I need to update the p2p_transfer_in_upd table based on some values in the el_transfer_in_upd_temp table (see code).
I'm getting the following error:
(0RA01427; single row subquery returns more than one row)
I don't know what the problem is. Please help me.
Thank you.
p2p_transfer_in_upd
el_transfer_in_upd_temp
I need to update the p2p_transfer_in_upd table based on some values in the el_transfer_in_upd_temp table (see code).
I'm getting the following error:
(0RA01427; single row subquery returns more than one row)
Code:
update p2p_transfer_in_upd
set enrollment_date = (select enrollment_date
from el_transfer_in_upd_temp
where p2p_transfer_in_upd.hicn = el_transfer_in_upd_temp.hicn)
,mrn = (select mrn
from el_transfer_in_upd_temp
where p2p_transfer_in_upd.hicn = el_transfer_in_upd_temp.hicn)
,region_id = (select region_id
from el_transfer_in_upd_temp
where p2p_transfer_in_upd.hicn = el_transfer_in_upd_temp.hicn)
where exists (select 'x' from el_transfer_in_upd_temp
where p2p_transfer_in_upd.hicn = el_transfer_in_upd_temp.hicn)
and p2p_transfer_in_upd.ht_load_complete_dt is null
I don't know what the problem is. Please help me.
Thank you.