PL/SQL (MOSC)

MOSC Banner

Need pl/sql script to track history of changes in a table

in PL/SQL (MOSC) 6 commentsAnswered

Dear all,

I have a table which tracks the changes made in 2 columns as old_value and new_value.

For example

A1 changed to A2, then A2 changed to A3, then A3 changed to A4, then A4 changed to A5.

Now, we need a pl/sql script to show that A1 changed to A5, A2 changed to A5, A3 changed to A5, A4 changed to A5. as the final value now is A5

Since the final value for all A1,A2,A3,A4 is A5.

I want to read from the Existing table and insert into a new table with additional field "Final" ( pls refer attached image)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center