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

SQL window functions in HANA procedures

$
0
0

Hello

 

I am facing a problem when writing HANA Procedures.

 

I am trying to use the SQL window function LEAD / LAG  and PARTITION functions. But I am getting syntax errors on the same.

 

The same code ran successfully when I wrote in AMDP methods.

 

I believe the NATIVE SQL syntax should be same in AMDP or HANA Procedures. The code is given below. Please let me know where the things going wrong.

 

Below is the code -

 

Capture.JPG


Viewing all articles
Browse latest Browse all 5653

Trending Articles



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