嗨我有以下查询
SELECT SUM(value1 +value2) AS total ,created_at
FROM mytable
WHERE created_at
BETWEEN '2013-10-1' AND '2013-10-19'
GROUP BY created_at
返回
## total | created_at ##
2500 | 2013-10-01
6546 | 2013-10-05
但我想要
## total | created_at ##
2500 | 2013-10-01
0 | 2013-10-02
0 | 2013-10-03
0 | 2013-10-04
6546 | 2013-10-05
我想为没有总和的日期返回 0,以便表格每天显示范围之间的任何帮助将不胜感激