Brug SUM
funktion til at summere count
kolonne og brug DATE_FORMAT
funktion for kun at gruppere efter dato.
SELECT DATE_FORMAT(detectDate, '%Y-%m-%d') AS detectDate
,infection
,SUM(`COUNT`) as `count`
FROM myTable
GROUP BY DATE_FORMAT(detectDate, '%Y-%m-%d'), infection