Quantcast
Viewing all articles
Browse latest Browse all 14773

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

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