I have a query that returns months 1-12. (INT)
Is there a way to order the results starting on this month desc?
Example
3
4
5
6
7
8
9
10
11
12
1
2
Thanks!
EDIT: By this month desc, I mean this actual month. MONTH(GetDate())
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try simple maths in order by, if month is smaller then current add 12, not sure what will be the performance impact …