Hi,
I have two tables Customer and Company.
Customer
--------
ID, Name, CUST_CHK
Company
-------
CUST_CHK, STATUS_IND, CUST_KEY etc..
i want to do a lookup for CUST_CHK key exists in the Company table. IF the row exists then it shud update the row with source values or else it should add a new row. and for each new row the CUST_KEY should be populated using a sequence genereator.
thanks in advance for your help
I have two tables Customer and Company.
Customer
--------
ID, Name, CUST_CHK
Company
-------
CUST_CHK, STATUS_IND, CUST_KEY etc..
i want to do a lookup for CUST_CHK key exists in the Company table. IF the row exists then it shud update the row with source values or else it should add a new row. and for each new row the CUST_KEY should be populated using a sequence genereator.
thanks in advance for your help