Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 39682d7001fe8b30d488289bb8d6e3df > files > 57

firebird-2.1.3.18185.0-5mdv2010.0.i586.rpm

--------------------
IIF builtin function
--------------------

Function:
    Return a value of the first sub-expression if the given search condition
    evaluates to TRUE, otherwise return a value of the second sub-expression.

Author:
    Oleg Loa <loa@mail.ru>

Format:
    IIF ( <search condition>, <value expression>, <value expression> )

Syntax Rule(s):
    IIF (SC, V1, V2) is equivalent to the following <case specification>:
         CASE WHEN SC THEN V1 ELSE V2 END

Example(s):
    SELECT IIF(VAL > 0, VAL, -VAL) FROM OPERATION