I am trying to insert data into a table in Oracle database. Data already exists, but not all of the data, and I can't just delete the data and reinsert it all. Is there a way to insert data into the table (without knowing what data I am missing). My script is running, but no data is actually inserting (and I do know there is data missing. I intentionally took data out to test its re-insertion.)
Insert into item (item, descr)
select distinct a.SUBORD, a.SUBORD_DESCR FROM EXIDE.UDT_BOM a, item b
where b.item = a.subord and not exists
(select b.item from item b, exide.udt_bom a where a.subord = b.ITEM)