I know that I'm near, and he KILLED me. You need a fresh set of eyes ...
SELECT first_name, COUNT(*) FROM (SELECT first_name, job_status FROM typesetting LEFT JOIN employees ON typesetting.employees_id = employees.id LEFT JOIN job_status ON typesetting.job_status_id = job_status.id WHERE job_status NOT LIKE 'Archived' ORDER BY first_name ASC) AS CNT GROUP BY first_name
This is me:
- Arnold (5)
- Claudia (19)
- Janet (29)
- Rich (21)
- Tom (4)
- Unrecognized (24)
However, there are some results with zero values ββthere that I desperately want in the results, for example:
- Arnold (5)
- Cheryl (0)
- Claudia (19)
- Cyndi (0)
- Janet (29)
- Phil (0)
- Rich (21)
- Tom (4)
- Unrecognized (24)
What am I doing wrong? So close! Thanks!
Matt
source share