I have a select statement that returns two columns, a date column, and a count(value) column. When the count(value) column doesn\'t have any records,
count(value)
select convert(varchar(25), DateTime, 101) as recordDate, CASE WHEN count(value) =0 THEN 0 ELSE COUNT(value) END recordCount from History where Value < 700 group by convert(varchar(25), DateTime, 101)