SELECT DATE(date), COUNT(*) AS Total, -SUM(amount) AS Collected FROM dailytask Where group = 'serves' AND amount < 0 AND DATE(date) >= 'yyyy-mm-dd' group by DATE(date)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)