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

Top N rows using views

$
0
0

Hi,

     can we show TOP N rows using any of the views(Attribute, Analytic , Calc.) ?.

I have created a calc. view  which is a group by username. The output is something like this:

        USNAM   COUNT

         user123     10

         user121     3

         UserX12     6

         ;;;;;

         ;;;;;;;

 

I want only  top 5 users . Sql Query for this:'  ................order by "COUNT" desc  limit by 5'; which works fine. But I want the output of view exactly the same way. Is it possible?.

 

 

Thanks,

Mukund


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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