Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Creating column with previous month

$
0
0

Why don't you use window functions (e.h. LEAD/LAG) to access the prior/following row?

For your scenario, you could also use a self-join.

 

Shouldn't be too difficult for you to find a fitting solution.

 

- Lars


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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