al1024
\
thanks a lot. Your fix looks excellent. I try to run it, but teradata gives me a 'expecting something like a UDFCALLNAME keyword error between the ) and ORDER. So now I need to work that out. Also, I changed the name of the first column from ROW_ONE to COLUMN_ONE and tried adding...
I am using teradata.
This is what I want to do:
SELECT
'Total ' as Row_One
, Name
, Sum (Column2) Column2_Sum
, Sum (Column3) Column3_Sum
, Sum (Column4) Column4_Sum
, (Column2_Sum + Column3_Sum + Column4_Sum) Total_Sum
, Rank (Total_Sum) Total_Sum_Rank
FROM [table]
GROUP BY Name...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.