I need to write a query which returns No. of days of a Month. Please understand that I cannot use DATE, and any query having DATE will not work.
I have created a parameter which takes int value. Like January is 1, February is 2 etc.
From the values 1 or 2, I wanted to get the number of days like the number of days of 1 should be 31 and 2 should be 28 or 29.
I am using Ms sql-server-2008.
Help is required.
Regards,