Ich wäre für eine etwas kürzere Variante
"SELECT COUNT(*) c, SUBSTR(Counter_Time, 1,10) t ".
"FROM `tabelle` ".
"GROUP BY TO_DAYS(Counter_Time) ". "ORDER BY c ASC "
sofern Counter_Time als Datetime gespeichert ist, sonst bekommst für das substr nix richtiges
|