Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 26 Sep 2002 @ 20:21:31 GMT


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


Subj:   Re: Count(case... to get a count(distinct acct_id) Is this possible?
 
From:   Jim Downey

Does this do what you need?

sel   count(*)
from
(
sel   orgnl_srv_dt
,     elec_addr_txt
from  your_table
where orgnl_srv_dt >= '2002-05-08'
and   elec_addr_txt <> '   '
group by 1,2
) T1


     
  <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