Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

Simple math in calculated columns across different rows

$
0
0

Hi,

 

let's assume there is a table with stock price data with columns "sequence" "date" "open" "high" "low" "close".

 

Next step is to calculate and add an additional column which is calculated as the difference between todays close price and the close price of 5 days ago

(close price in row 1 minus close price in row 5).

 

How can this be done in HANA - for example in a calculated column in a calculation view ?


Viewing all articles
Browse latest Browse all 6745

Trending Articles



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