Archives of the TeradataForum
Message Posted: Wed, 06 Jun 2001 @ 14:58:06 GMT
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....
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
|Copyright 2016 - All Rights Reserved|
|Last Modified: 28 Jun 2020|