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

required to get the records for last 6 months - response (11) by qbeg

$
0
0

I don't know whether well I understood the problem, if it is a following code should help:

SELECT top 1000 order_date FROM database.table
where order_date>=add_months(current_date,-6)
order by order_date

In case of questions I stay for the instruction:)

Best regards
Peter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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