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

Get Most Current Date - response (3) by dnoeth

$
0
0

Hi Charles,
simply add a PARTITION BY:

qualify rank() over (PARTITION BY ACCT order by ORD_DUE_DT desc) = 1

Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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