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

How to add counter to Hana View

$
0
0

I am new to HANA Modeling and I am not sure how to add a Rank column. 

Here is my data

Employee     Date            Seq Value     

E001            6/21/2016        01            

E001            6/21/2016        02             

E001            6/22/2016        02            

 

The data will be sorted by Employee, Date, Seq Value

I want to add a Rank column for each unique Employee + Date combination

Employee     Date            Seq Value      Rank

E001            6/21/2016        01                1

E001            6/21/2016        02                2

E001            6/22/2016        02                1

 

Can I do in a Calculation View or do I need to write an SQL Script?

 

Thanks.

Sandy


Viewing all articles
Browse latest Browse all 5653

Latest Images

Trending Articles



Latest Images

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