Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 06 Jun 2001 @ 14:58:06 GMT


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


Subj:   Query conundrum
 
From:   Cornelius Meade

I have a query like the following which is being ported from Oracle to Teradata and I am looking for a way around the Teradata limitation (3628 error) that the DISTINCT option can not be used against two different expressions within a single selected clause....

example:

SELECT
  column_name_1,
  count(DISTINCT column_name_2),
  count(DISTINCT column_name_3),
  sum(column_name_4),
  sum(column_name_5),
  sum(column_name_6)
FROM
  table_name
GROUP BY
  1 ;

Any and all ideas are appreciated.....Thanks in advance....Neil

Cornelius Meade III
EDS E.crm - Business Intelligence Services
www.eds.com



     
  <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