Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

GROUP BY USING VIEWS

$
0
0

Hello Guys,  I am a beginner to SAP HANA.

          I have a sql query something like this:

          Select  a.username,b.rask_id, count(*)

           from tableA a, tableB b

           where tableA.id = tableB.doc_id

           group by a.username, b.rask_id;

 

tableA.id relation with tableB.doc_id is 1:n.

Output of the above query is something like this:

            user1        20

            user2        1

            userxxx     12

            userN        x

      

Can someone please help me how to create equivalent view for the above query?.

 

 

Thanks,

Muks


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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