Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

insert into target by comparing the source

$
0
0

Hi All,
I have a scenario where I have to compare the target table with the incoming source table then insert into target if the record not found in target.
I have target with following data
hsp_accnt_id, Pat_enc_id, Abn_yn, order_type speci_taken_time, Pat_id
51367962001, 58047058, Y, 1008, 05-20-2014 17:06:00, Z3793120

I have the incoming source with data

hsp_accnt_id, Pat_enc_id, Abn_yn, order_type, speci_taken_time, Pat_id
51367962001, 58047058, Y, 1008, 05-20-2014 00:50:00, Z3793120
41567152070, 57982980, Y, 1008, 05-16-2014 13:42:00, Z2694664

Now I want to compare the taget with incoming source and insert the row that does not exist in the target in my case the hsp_account_id
41567152070 row
Hope I made it clear.
Database oracle 11g, BODI 3.1


Viewing all articles
Browse latest Browse all 4013

Trending Articles