Mysql queries the data, classifies it by date, and sums up the data on the same date.

the data format in the table is as follows

2018-01-01 58
2018-01-01 12
2018-01-02 54
2018-01-02 24
2018-01-01 36
2018-01-03 3 10

the data format after query is as follows
2018-01-01 9 16
2018-01-02 7 8
2018-01-03 3 10

could you tell me how to write the query statement?

Feb.28,2021

select date, count('') as '' , count('') as '' from `` group by date

//date  

Menu