|
|
Archives of the TeradataForum
Message Posted: Sun, 24 Sep 2002 @ 19:17:26 GMT
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, | |
| |