SELECt WEEKOFYEAR(`date`) AS period, SUM(clicks) AS clicksFROM `tablename`WHERe `date` >= CURDATE() - INTERVAL 4 WEEKGROUP BY periodSELECt MonTH(`date`) AS period, SUM(clicks) AS clicksFROM `tablename`WHERe `date` >= CURDATE() - INTERVAL 3 MonTHGROUP BY period
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)