SELECT YEAR(CollectionDate) AS Year, DATEDIFF(quarter, CAST(DATEPART(YEAR, CollectionDate) AS NVARCHAR(4)) + ‘-01-01‘, CollectionDate) + 1 AS Quarter, DATEDIFF(week,CAST(DATEPART(YEAR, CollectionDate) AS NVARCHAR(4)) + ‘-01-01‘, CollectionDate) - DATEDIFF(quarter, CAST(DATEPART(YEAR, CollectionDate) AS NVARCHAR(4)) + ‘-01-01‘, CollectionDate) * 13 + 1 AS Week, CollectionDate
FROM dbo.CollectionInformationList