Hello I am new to informatica, and was trying to write a decode or if, where only one value goes into the output port... a value that is not equal is going into the output port... i iam positive the value is not equal... so my decode doesn't work and me trying to do a nested if doesn't work... the decode is as follows... decode (true testopen = testdoor1, 'open', 'close', testopen = testdoor2, 'open', 'close', testopen = testdoor3, 'open', 'close')
Although i know testdoor3 is the only one that equals testopen.. testdoor3 is populated.. i tested it with one test on testdoor2 ( only one expression in the decode and it still populates testopen with testopen2) the testdoor2 and testdoor1 have nulls
i then tried with an iif but got stuck afteer the first
iif (testopen = testdoor1, 'equal','noequal')
but i couldn't figure out how to do it with 3 iif statements.. your help is appreciated.
decode (true
testopen = testdoor1, 'open', 'close',
testopen = testdoor2, 'open', 'close',
testopen = testdoor3, 'open', 'close')
or iif (testopen = testdoor1, 'equal','noequal') your assistance is appreciated!