B
Brad Pears
I am working on an an Access 2000 query to list the number of active cases
for each manager and am having some problems....
Here is a simplified version of the tables and some data...
Table: CustServ
Fields CaseNo, Manager
data...
CaseNo Manager
01 jsmith
02 jsmith
03 lgooden
04 hfesting
Table: Issues
Fields Issueno, CaseNo, Closed
data...
IssueNo CaseNo Closed
01 01 False (manager = jsmith)
02 01 False (manager = jsmith)
03 01 True (manager = jsmith)
04 02 False (manager = jsmith)
05 03 False (manager = lgooden)
What I want to list is a group by query by manager giving me just the
individual manager names and the sum of the total number of open issues
(closed = false) for each.
So using the above tables and data, I would want my query to generate data
as follows...
Manager Open Cases
jsmith 3
lgoodens 1
hfesting 0
Can someone give me the sql to do this?
Please note that I also want to make sure that managers that do not have any
related issues at all (as in teh case of hfesting) I want to make sure it
still shows "0" for them...
Thanks,
Brad
for each manager and am having some problems....
Here is a simplified version of the tables and some data...
Table: CustServ
Fields CaseNo, Manager
data...
CaseNo Manager
01 jsmith
02 jsmith
03 lgooden
04 hfesting
Table: Issues
Fields Issueno, CaseNo, Closed
data...
IssueNo CaseNo Closed
01 01 False (manager = jsmith)
02 01 False (manager = jsmith)
03 01 True (manager = jsmith)
04 02 False (manager = jsmith)
05 03 False (manager = lgooden)
What I want to list is a group by query by manager giving me just the
individual manager names and the sum of the total number of open issues
(closed = false) for each.
So using the above tables and data, I would want my query to generate data
as follows...
Manager Open Cases
jsmith 3
lgoodens 1
hfesting 0
Can someone give me the sql to do this?
Please note that I also want to make sure that managers that do not have any
related issues at all (as in teh case of hfesting) I want to make sure it
still shows "0" for them...
Thanks,
Brad