Jolted_Chicken
Registered User.
- Local time
- Tomorrow, 04:03
- Joined
- Nov 7, 2002
- Messages
- 15
I've a database that logs arrivals of documents at work.
Documents get forwarded to other section of the Division.
I already got a query that selects the documents forward in a particular month. (called qrymonthlyarrivals)
Now I need to count the ones that are forwarded to people within the division and the ones forwarded to outside of the division.
eg
Person 1: 10
Person 2: 0
Person 3: 4
Outside the division: 6
Person 1,2,3 are stored in a table. But outside the division, the names arent in any table (I didnt design this db).
I've been stuck for days.....
A lot of problem is from counting zeros, cos if a person doesnt get any documents, then their name wont appear in qrymonthlyarrivals.
in a nutshell: If (table.name=qrymonthlyarrivals.name,table.name ,"Others")
But i cant get the joins right.
Any help would be much appreciated .
Documents get forwarded to other section of the Division.
I already got a query that selects the documents forward in a particular month. (called qrymonthlyarrivals)
Now I need to count the ones that are forwarded to people within the division and the ones forwarded to outside of the division.
eg
Person 1: 10
Person 2: 0
Person 3: 4
Outside the division: 6
Person 1,2,3 are stored in a table. But outside the division, the names arent in any table (I didnt design this db).
I've been stuck for days.....
A lot of problem is from counting zeros, cos if a person doesnt get any documents, then their name wont appear in qrymonthlyarrivals.
in a nutshell: If (table.name=qrymonthlyarrivals.name,table.name ,"Others")
But i cant get the joins right.
Any help would be much appreciated .