Search found 2 matches
- Fri Jan 24, 2014 10:51 am
- Forum: Vertica SQL
- Topic: Problem while trying to aggregate in subquery
- Replies: 1
- Views: 6693
Problem while trying to aggregate in subquery
This is a exact sample of a query which I have been trying to run... SELECT 'abc' AS ctx, SUM(A.TID) AS TID, SUM(A.AMT) AS AMT, SUM(A.BMT) AS BMT, (SELECT SUM(rzrm) FROM abcd o) AS rzrm FROM xyz a GROUP BY 1 This version works well in oracle but when trying it in vertica I get following error [Verti...
- Fri Jan 24, 2014 6:29 am
- Forum: Vertica SQL
- Topic: how to implement group by grouping sets
- Replies: 3
- Views: 9259
how to implement group by grouping sets
Is there any way to implement group by grouping sets() like in oracle. I am writing queries that were previously implemented in oracle but I am not being able to find this feature in vertica. In oracle we can rewrite queries of the format SELECT a, b, SUM( c ) FROM t GROUP BY GROUPING SETS ( ( a, b ...