I have a progress column and an email date column. I'd like to have count 3 results as variables:
First: Progress = 0
Second: Progress = 1, EmailDate == 0000-00-00 00:00:00
Third: Progress = 1, EmailDate !== 0000-00-00 00:00:00
Currently I have the following:
SELECT Progress, COUNT(*) AS counter
FROM myTable
GROUP BY Progress
However, it isn't using the Email Date, when I try and use it, I get a zero value.