 |
 |
Archives of the TeradataForum
Message Posted: Mon, 03 Jun 2002 @ 18:55:56 GMT
Subj: | | Re: Parens necessary? |
|
From: | | Fred W Pluebell |
Actually, this behavior IS documented for the special-case COALESCE and NULLIF forms; it's NOT documented for general CASE expressions,
but the same rule does in fact apply.
For example, from SQL Reference Volume 5:
Modifying COALESCE With A Scalar Expression
Whenever you modify a COALESCE function with a scalar expression, you must enclose the entire function and its operands with
parentheses.
Note that this applies to ALL scalar functions, not just concatenation; that includes arithmetic functions, CAST, SUBSTRING, ...
| |