Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Analysis Services (2000)
 How to display Total Month Names of year

Author  Topic 

bharathpbk
Starting Member

1 Post

Posted - 2010-08-09 : 07:12:31
Hi ,

How to display month names of year...

Bharath

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2010-08-09 : 11:34:52
try this

select
date
,month_name =case
when month(date) = 1 then 'Jan'
when month(date) = 2 then 'Feb'
when month(date) = 3 then 'Mar'
.
.
.
when month(date) = 12 then 'Dec' end
from
MyTable
Go to Top of Page
   

- Advertisement -