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

Get the next partition - response (5) by QAKiani

$
0
0
I think you can further simplify the solution suggested by ulrich to get the required results... select * from vt_tst where col2/100 = ( select min(col2) / 100 from vt_tst where col2/100 >= (add_months(cast('2012-01-30' as date),1))/100 )  

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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