I am new to programming SQL (fixing somebody elses oversights). I am attempting to take data from a source table (updated daily) in insert/update into a destination table which already has 100-200K records. Most of the records are updates, but some will be new records. The logic I used is Update/Set/On/From followed by an IF NOT EXIST INSERT INTO dest table/SELECT/FROM source table.
It appears that the IF NOT EXIST is where my breakdown is occurring. Any thoughts?
It appears that the IF NOT EXIST is where my breakdown is occurring. Any thoughts?