in the below query i have succeeded to get my data in a table starting from Jan, but i want to get starting month based on given date. ex: if month(inputdate) is 11 then table columns should start from nov and end with sepin the below query i have succeeded to get my d