I have to insert/update some RECORDS in table target_table. These records are coming one source_table.
I am using MERGE for update/insert in target_table. Query is as b
You can simply add WHERE clause to UPDATE. More about it in oracle docs.
WHERE
UPDATE
So in your case it should look like:
... WHEN MATCHED THEN UPDATE SET tgt.column3= src.column3, tgt.column4 = src.coulmn4 WHERE tgt.column3 IN (val1, val2) WHEN NOT MATCHED ...