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

Recursive Query - response (7) by Sarah_07

$
0
0

Hi Dieter,
The data in DND_XREF_TEMP looks like,

ACT_DATE                  REC1  CC         DND_NO

12/31/2020 0:00:00  0        594051 101

06/17/1999 0:00:00  250    762653 102

06/09/2006 0:00:00  4440  900630 103

12/30/1998 0:00:00  2239  280068 104

02/22/2007 0:00:00  4008  890724 105

 

and my output should be like,

ORIG_DND LATEST_DND

101            101

102            250

103            4440

104            4015

105            4008

 

The ultimate moto is get Latest_dnd.

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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