Hi,
I have date column in the database. I want to retrieve the monthly data from database.
Thanks,
Darma
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
divyaPosted Nov 21, 2012, 3:08 AM
you can also use the below function to fetch only month.
select DATEPART(MM,ColumnName) from Table
thanks®ards
Divya
darma tejaPosted Nov 20, 2012, 11:33 AM
chikken chikkenPosted Nov 20, 2012, 9:54 AM