I am trying to print 0 if the total of the count is 0 but not working
select
sum(DATEADD(day, DATEDIFF(day, 0, dCreated), 0)) as TotalCount,
DATEADD(day, DATEDIFF(day, 0, dCreated), 0) as DateCreated
--sum(*) as total count
from ERROR_Tracking
where szDescription like '%timeout%' and dCreated > '2013-06-01'
group by DATEADD(day, DATEDIFF(day, 0, dCreated), 0)
order by DATEADD(day, DATEDIFF(day, 0, dCreated), 0)
k