Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Find the two pre/post/both the Dates - response (1) by DS

$
0
0
May be in this way   select case when timeperiod < maturity then timeperiod else timeperiod qualify rank() over (order by maturity, timeperiod desc)<=2

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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