I have this query below but I’m afraid it will not work when the year turns 2012. Any help would be fantastic.
SELECT distinct Month(GetDate())-1,Year(GetDate()) FROM myybl
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.
Perhaps this:
The formatted output for today would look like:
If you want two separate columns:
Output: