something like:-SELECT DATEADD(dd,DATEDIFF(dd,0, datefield),0) AS Date,SUM(CASE WHEN YEAR(datefield)=YEAR(GETDATE()) THEN yoursalesqtyfield ELSE 0 END) AS CurrentYearSales,SUM(CASE WHEN YEAR(datefield)=YEAR(GETDATE())-1 THEN yoursalesqtyfield ELSE 0 END) AS PrevYearSales,SUM(CASE WHEN YEAR(datefield)=YEAR(GETDATE())-1 THEN yoursalesqtyfield ELSE 0 END)*100.0/NULLIF(SUM(CASE WHEN YEAR(datefield)=YEAR(GETDATE()) THEN yoursalesqtyfield ELSE 0 END),0) AS PercentchangeFROM YourTableWHERE datefield>= DATEADD(yy,DATEDIFF(yy,0,GETDATE())-1,0)AND datefield< DATEADD(yy,DATEDIFF(yy,0,GETDATE())+1,0)GROUP BY DATEADD(dd,DATEDIFF(dd,0, datefield),0)