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 Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023