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