GoldenGate, Streams and Distributed Database (MOSC)

MOSC Banner

Nested @IF logic in Goldengate

edited Sep 6, 2018 5:01AM in GoldenGate, Streams and Distributed Database (MOSC) 3 commentsAnswered

Hi Experts,

I need to write a piece of GG code to check the values of two columns and update the third column in GG replicat file.

I have one column soft_Delete, Here are the below conditions , that needs to be checked :

condition 1 : if column acitve_flg is 'N' then then soft_del column should be updated to 'Y'

condition 2 : if active_flg is 'Y;, soft_del should be ;Y;

Condition 3 : if the other column , desc_text is 'Fault', then Soft_del should be 'Y' and if desc_text is not 'Fault', then soft_del should be 'N'.

I felt, using nested

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