duplicate records logged by different reps counted

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am attempting to count the number of instances two different employee's
logged an interaction with the same customer on the same day, I cant do it.
suggestions???
 
I am attempting to count the number of instances two different employee's
logged an interaction with the same customer on the same day, I cant do it.
suggestions???

I'd suggest you start by giving us a bit of help. Not knowing how
you're storing the employee, customer, or interaction information, or
anything about the structure of your tables, it's basically impossible
to give a useful answer.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
Hi John,

Sorry about being vague (I'm new to this)

I work in a call center and am attempting to track duplicate rollouts to
CSR's. Each log in the database is stamped with an employee ID, starting
with a different prefix depending on the reps skill set, for instance one ID
might be we12345, another might be rt45678. I am attempting to find
interactions that meet this criteria: spoke to a "we" rep and then an "rt"
rep on the same day. I do not need any data about these dup records, just
how many times this occured over a month for instance.

The table feeding the query conssits of about 20 fields; however, I'm mainly
interested in the employee ID and the date fields. If there is a log on this
table, it means that a caller did role out to a rep.
 
Sorry about being vague (I'm new to this)

Thanks for posting back. Just remember - we're volunteers, donating
our time to the newsgroup; and we can see the message you type but
nothing else about your application!
I work in a call center and am attempting to track duplicate rollouts to
CSR's. Each log in the database is stamped with an employee ID, starting
with a different prefix depending on the reps skill set, for instance one ID
might be we12345, another might be rt45678. I am attempting to find
interactions that meet this criteria: spoke to a "we" rep and then an "rt"
rep on the same day. I do not need any data about these dup records, just
how many times this occured over a month for instance.

Tricky! Assuming that:

- that the table is named Interactions
- there is a field CallerID and you want to find duplicates within a
single day
- that you have a field CallDateTime with the date and time of the
call

then a self-join query should work.

SELECT A.CallerID, A.CallDateTime, A.EmployeeID, B.EmployeeID
FROM Interactions AS A INNER JOIN Interactions.B
ON A.CallerID = B.CallerID
WHERE A.EmployeeID LIKE "we*" AND B.EmployeeID LIKE "rt*"
AND DateValue(A.CallDateTime) = DateValue(B.CallDateTime);

You could then change this to a Totals query to count occurances.

Just one concern - Your EmployeeID violates the basic "atomic" rule of
relational design. Storing two pieces of information, a unique
personal identifier and a skill set, is not ideal! They should
probably be stored in two separate fields; or, if you really want to
reflect the reality that a given employee might be multitalented, in
three tables: Employees, Skills, and SkillSets.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
John,

Thank you. I will attempt to implement your suggestions. Also, I may not
have been clear with my description of skill sets. The prefix does not
indicate skill set as I mentioned, each rep has dozens of sets, the prefix
differentiates between a temp ee and a permanent one. If callers show a
pattern of interactions with both reps than we have a training issue.

I do understand that you volunteer your help, and it is GREATLY appreciated.
Thanks for your time.

John Vinson said:
Thanks for posting back. Just remember - we're volunteers, donating
our time to the newsgroup; and we can see the message you type but
nothing else about your application!
I do understand that you volunteer your help, and it is GREATLY appreciated.
Thanks for your time.
 
Back
Top