Is there any way to do this? Right now I have something like so....
Code:
SELECT mgr_name, Count(*) AS COHCnt
FROM tblAudits
WHERE xyz....
GROUP BY mgr_name
The problem is, it ignores 0's if there was no results from the where conditions... I need it to basically provide a list of the mgr_name and then if there was 0 results for said manager it provides a 0. I had ready that before I could do a Group by all, but I guess that is older and no longer works? Not sure, it gave an error message.
Right now it would show for example...
Mgr1 5
Mgr2 3
Mgr4 2
I need it to show....
Mgr1 5
Mgr2 3
Mgr3 0
Mgr4 2