MySQL - 일별통계, 주간통계, 월간통계, 기간별통계
sample 테이블 생성 CREATE TABLE `test_st` ( `reg_date` date NOT NULL, `value` int(11) NOT NULL ); INSERT INTO `test_st` (`reg_date`, `value`) VALUES ('2017-03-01', 4), ('2017-03-08', 2), ('2017-03-15', 4), ('2017-03-22', 4), ('2017-04-01', 9), ('2017-04-02', 1), ('2017-04-04', 2), ('2017-04-09', 4), ('2017-04-11', 2), ('2017-..