Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: GROUP BY USING VIEWS

$
0
0

Hello Muks,

 

I think your question is how you can do that with a column view (calculation view/analytic view) and not with a "classic" database view?

 

Within a calculaiton view (or analytic view) you can join both tables with a join node. To get the counter information you can

1) use the "count" aggregation functionality in an aggregation node

or

2) define a calculated column in a projection node after the join node which returns always the integer value 1 -> in the aggregation node you can use the "sum" aggregation functionality for that new column to get the count.

 

Best regards,

Florian


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>