HiI'm looking to get a count of the number of records which fall into each bucket by the field 'DateResolved'. I want to get count where the DateResolved was within 1-7 days of the current date, then 8-14 days. ThanksSELECT COUNT(IssueID) As IssueCountTotal ,SUM(CASE WHEN (DateResolved > DATEADD(d, -1, GETDATE()) AND DateResolved > DATEADD(d, -7, GETDATE())) THEN 1 ELSE 0 END) AS [1-7 Days] ,SUM(CASE WHEN (DateResolved >= DATEADD(d, -8, GETDATE()) AND DateResolved > DATEADD(d, -14, GETDATE())) THEN 1 ELSE 0 END) AS [8-14 Days]FROM Issues