SELECT substring(in_time,1,10) as DATE, COUNT(employees_id) AS Count FROM
attendance where in_time BETWEEN '2019-06-26' and '2019-07-07' group by
substring(in_time,1,10)
正如标题所述,如果当天没有数据获取,我如何查看日期范围,这是从现在开始使用的查询。 Sample Output That i want,这就是我的数据库Sample Structure of my database
的结构