Hi,
I have date column in the database. I want to retrieve the monthly data from database.
Thanks,
Darma
How to get monthly data from the database
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
divya146 reputationPosted Nov 20, 2012, 10:08 PM EST
you can also use the below function to fetch only month.
select DATEPART(MM,ColumnName) from Table
thanks®ards
Divya
chikken chikken2 reputationPosted Nov 20, 2012, 4:54 AM EST
darma tejaRank #3,199 · 449 reputationPosted Nov 20, 2012, 6:33 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts