Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Sun, 24 Sep 2002 @ 19:17:26 GMT

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

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

You must have another statement in your select that is doing a distinct operation but in a slightly different manner. What you have below will give you the desired result, it's just that there is a conflict between it and something else (in your select clause).

  count(distinct(case when orgnl_srv_dt >= '2002-05-08' and
elec_addr_txt <> ' ' then b.acct_id else null end)) as count1,

  <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