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

Re: Regarding SQL Logic

$
0
0

Generally you could use window functions to access previous or next rows in an ordered set.

Look for LEAD()/LAG() in the SQL language reference and you'll find examples for that.

 

For your example however, I don't see any inner logic to the order of your records.

So, why would the record DEF come after the second ABC and not after the third?


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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