Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Need to calculate using LEAD, LAG function - response (8) by mohan.mscss

$
0
0
Hi Arbiswas, Yes this won't  match with your result set which given in the initial post because of the same date is having multiple status(2/1/2009). However executing the query from my end which gives the result as like below..     31750    01/01/2009    01/23/2009     31750    02/01/2009    02/01/2009     31750    06/01/2009    05/02/2010     31750    07/01/2010    11/01/2011   could you please help me to understand how you are getting the 6 rows as output for the given ID instead of 4? Regards, Mohan K

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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