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

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 14773

Trending Articles