It is usually better to do a date query as a range selection:where MyCol >= StartDateTime and MyCol < EndDateTimeYou don't have to run each column through a function and the query optimizer can use an index on the date column (if it exists).For your example, it would be:where ReportingPeriodDate >= -- Beginning of last year dateadd(year,datediff(year,0,getdate())-1,0) and ReportingPeriodDate < -- Beginning of this year dateadd(year,datediff(year,0,getdate()),0)
CODO ERGO SUM