Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

There is a lack of clarity in explanation of LAST_VALUE

$
0
0
I had also observed the change of LAST_VALUE function compared to FIRST_VALUE. Had to spend sometime before I understood the reason for this change of behavior. The result what you see is correct but difference is not well explained in above example. Reason lies in ROWS clause which is related to LAST_VALUE(). When not specified it defaults to ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW. Within this window it finds the LAST_VALUE and returns which is what you see in results above. To get t

Viewing all articles
Browse latest Browse all 12198

Trending Articles



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