I\'m finding some problems with a query that returns the sum of a field from a table for all the records that meet certain conditions. I expected to receive a \"No records f
You can group by the another metric. For example month and then sql also returns 0 rows:
SELECT SUM(dummy), DATE_FORMAT(day, '%Y-%m') as month FROM DUAL WHERE 1=2 GROUP BY month