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

RANK - response (1) by msk.khurram

$
0
0

SELECT ALTKN, DOCNUM, KUNNR
FROM TABLE_NAME
QUALIFY ROW_NUMBER() OVER(PARTITION BY ALTKN ORDER BY DOCNUM DESC) = 1;
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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