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
Here is another way. Use SQL Servers YEAR() and MONTH() functions. For week, I use datepart(week,Mydate) as noted by @DMK.
SELECT YEAR(MyDate), MONTH(MyDate), DATEPART(WEEK,Mydate) From YourTable