Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

How to create a view with a column of counts of the occurence of values

$
0
0

If my table is:

 

ID

1

2

3

3

5

5

5

 

I want to create a view with the following result:

 

ID   COUNT

1     1

2     1

3     2

5     3

 

How would I accomplish this?


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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