You are running the SQL with window function LAG or LEAD. And you will get different results when running the SQL for several times.
HANA all revisions
Window function, LAG, LEAD, Unexpected result, Wrong results , KBA , HAN-DB-SCR , SAP HANA SQL Script , HAN-DB-ENG , SAP HANA DB Engines , How To
About this pageThis is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).
Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.