Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

STANDARD_HASH function in oracle.

user8937045Mar 12 2019 — edited Mar 12 2019

Hi Team,

We have requirement where we have to populate target table using data from multiple source tables. And we do not have any column in source to identify if record is updated or newly created.

So we are simply checking if records exists (on key columns C1, C2) in target in update or else insert. here we are unnecessarily updating records which are actually not updated in source as we don't have any identifier.

Can we use STANDARD_HASH function to find if there is any update in existing records. If yes then can we use it in MERGE statement.

Or is there any other way to resolve this.

Thanks in advance.

Comments
Post Details
Added on Mar 12 2019
2 comments
823 views