Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Fri, 05 Jan 2007 @ 16:45:00 GMT





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




Subj:   Re: Counting a column multiple times based on CASE
 
From:   Fred W Pluebell



COUNT checks NULL / NOT NULL, and zero is NOT NULL; so either change the ELSE value to NULL instead of zero, or change COUNT to SUM and make the THEN value 1 instead of trxn_id





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