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

Get the next partition - response (2) by ulrich

$
0
0
isn't it not just the "next months with data" data in this case? select * from vt_tst where col2/100 = ( select min(col2) / 100 from vt_tst where col2 >= (add_months(cast('2012-03-01' as date),1) - extract(day from add_months(cast('2012-03-01' as date),1)) ) + 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>