Archives of the TeradataForum
Message Posted: Mon, 17 Mar 2003 @ 15:52:55 GMT
I believe that I have heard that the restriction for only using one column in a SELECT for all aggregate functions involving a DISTINCT is lifted in V2R5. So, if this is true, it sounds like you are on a prior release.
If you need to do this in a single request before V2R5, I suggest you use one derived table per needed per DISTINCT aggregate value. Then, you can join the derived tables together to consolidate the final output.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|