Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Recursive Query - response (12) by M.Saeed Khurram

$
0
0

Sarah,
So you main target is to get the latest_DND, Does this means that a DND goes through diffrent values? like at start it is 105 and at the current  value is 4008. from this data, I assume that rec1 is representing the latest dnd, and dnd_no is repsenting the initial DND. If you only have to get the latest DND then why dont you use max window function on date and get the DND at max date?
Does this makes sense?
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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