统计每周统计数据总数
sql:
SELECT
count(*) as total,
SUM(if(str_to_date(时间字段, '%Y-%m-%d')> '2018-12-02' and str_to_date(时间字段, '%Y-%m-%d')< '2018-12-10',1,0)) '第一周',
SUM(if(str_to_date(时间字段, '%Y-%m-%d')> '2018-12-09' and str_to_date(时间字段, '%Y-%m-%d')< '2018-12-17',1,0) )'第二周'
from 表名