IIF statement in SQL/ Informatica ( expression transformation) with two values

Nidhin_toms picture Nidhin_toms · Feb 3, 2016 · Viewed 26.1k times · Source

I have the following SQL statement which check for the presence of 000. But what if I want to check the presence of either 000 or 666? I tried using | but no luck.....

IIF(Field='000','TRUE','FALSE')

Answer

Vamsi Prabhala picture Vamsi Prabhala · Feb 3, 2016

Use in.

IIF(Field in ('000','666'),'TRUE','FALSE')