I want to split a datetime column so that the year and the month both have their own column in a select statement output. I also want to have a column by week of the year, a
check this
select datepart(Month,DateColumn) Mnth,datename(Month,DateColumn) MnthName,datepart(Year,DateColumn) Year1,((day(DateColumn)-1) / 7) + 1 week from dbo.Table