如何编辑这个mySQL以显示每天的结果?

时间:2016-03-31 11:14:46

标签: mysql

我的目标:显示2016-03-28至2016-03-30期间每天的hashCount

所以结果应该是这样的:

300 - 2016-03-28
400 - 2016-03-29
500 - 2016-03-30

但是我只得到

的结果
300 - 2016-03-28

问题:我该如何解决这个问题?

SELECT COUNT( DISTINCT v.`hash` ) hashCount, DATE( v.`timestamp` ) AS views
FROM audience v
INNER JOIN behaviour b ON v.`hash` = b.`hash` 
WHERE v.`timestamp` 
BETWEEN  '2016-03-28 00:00:00'
AND  '2016-03-28 23:59:59'
AND b.`timestamp` 
BETWEEN  '2016-03-29 00:00:00'
AND  '2016-03-30 23:59:59'
GROUP BY views

1 个答案:

答案 0 :(得分:1)

ggplot(data = mydf, aes(x=time, y=pdm, z=surface)) + geom_point() + stat_smooth(col="red") + stat_quantile(formula = loess(mydf$pdm ~ mydf$time), quantiles = c(0.25, 0.5, 0.75)) 条件仅将范围限制为where

2016-03-28