Hi Khurram,
My scenario is
CASE WHEN ( B.REC1 IS NULL OR B.REC1 =0)
THEN LATST_DND --this was derived from other case stmt
else B.REC1 END AS LATESTDND
my sample data would like below
B.REC1 A.DND_NO
2239 104
4015 2239
0 4015
Now, for the record A.DND_NO ='104' my LATESTDND should be 4015. But as per my query the output stops at 2239 which is not the expected result. Am not able to figure out how to do it with recursive query. Kindly help me.
Hi Khurram,
My scenario is
my sample data would like below
B.REC1 A.DND_NO
2239 104
4015 2239
0 4015
Now, for the record A.DND_NO ='104' my LATESTDND should be 4015. But as per my query the output stops at 2239 which is not the expected result. Am not able to figure out how to do it with recursive query. Kindly help me.