Subject Re: [firebird-support] Equivalent of VFP IIF() in FireBird SQL
Author Helen Borrie
At 01:00 PM 6/12/2004 +0530, you wrote:

>Hi all
>
>I would like to know if there is an equivalent to Immediate IF of VFP for
>FireBird for eg.
>
>SELECT IIF(Amt > 5, 1, 2) AS Flag
>
>So flag will contain 1 if the amt col is greater than 5 else flag will
>contain a 2
>
>Please advise.

Use a CASE expression - syntax is in the v.1.5 release notes.

./hb