Select sum from 1-15 and 16-31 on a month

后端 未结 0 1382
南笙
南笙 2021-01-12 00:48
SELECT
(SELECT
SUM(total)
FROM `earnings`
WHERE user_id = $userid
AND DATE_FORMAT(date_earn, (\'%m\')) = \'11\'
AND DATE_FORMAT(date_earn, (\'%Y\')) = \'2020\'
AND D         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题