Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 30 Jan 2001 @ 19:42:29 GMT


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


Subj:   V2R4 count(distinct) bug?
 
From:   Michael McIntire

I do not have access to the on-line call logs, can someone do a search for me? I think I have found a problem with count(distinct mycollumn), which returns the wrong result:

select CId, count(distinct PId)
from Transaction
group by CId
having count(distinct PId) > 1
order by 2 desc

This query produces results roughly 3 times the values of the same query in MSSQLServer 7.0. We have also decomposed the query into separate queries with temp tables and a derived query, and found the expected results - which match those on SQL Server 7.

Has anyone run into this?

Michael McIntire


Version: 04.00.00.10
Release: V2R.04.00.00.02



     
  <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