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  

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e82644-bd6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e82644-bd6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?