Mysql
 sql >> Database >  >> RDS >> Mysql

Mysql COUNT per data solo parte di DATETIME

Si, puoi. Usa semplicemente DATE() funzione.

SELECT DATE(visit_time), COUNT( visit_time ) 
FROM tracking
WHERE query_string LIKE  CONCAT('%', '60' ,'%')  -- makes readable
GROUP BY DATE(visit_time)