I want to select data from following table group by weeks
Date Product Name Sale +----------+--------------+-----+ 14-05-11 a 2 14
the provided solutions seem a little complex? this might help:
https://msdn.microsoft.com/en-us/library/ms174420.aspx
select mystuff, DATEPART ( year, MyDateColumn ) as yearnr, DATEPART ( week, MyDateColumn ) as weeknr from mytable group by ...etc