From dc04b6d07c9b8bacd05b1db8195f90e29fde2836 Mon Sep 17 00:00:00 2001 From: dimitr Date: Sat, 22 Jan 2005 21:13:15 +0000 Subject: [PATCH] More docs. --- doc/sql.extensions/README.iif | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/sql.extensions/README.iif diff --git a/doc/sql.extensions/README.iif b/doc/sql.extensions/README.iif new file mode 100644 index 0000000000..b566d40325 --- /dev/null +++ b/doc/sql.extensions/README.iif @@ -0,0 +1,20 @@ +-------------------- +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 + +Format: + IIF ( , , ) + +Syntax Rule(s): + IIF (SC, V1, V2) is equivalent to the following : + CASE WHEN SC THEN V1 ELSE V2 END + +Example(s): + SELECT IIF(VAL > 0, VAL, -VAL) FROM OPERATION