Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Mon, 03 Jun 2002 @ 18:55:56 GMT





     
  <Prev Next>   <<First <Prev Next> Last>>  




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, ...





     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008