I have no relationships between the tables
Cases
CaseNo, AssignedTo
Activities
CaseNo, CreatedBy
There are many Activities for each Case (calls in and calls out) and both tables have many many more fields than I have discribed above. I need to identify a percentage for each owner (grouped by owner) to measure what ratio of a person's Cases contain no Activities created by someone other than the person assigned to the Case, compared to ones that do. End Result I need is:
Joe 85%
Don 50%
Ron 95% (of his cases had activities that were created by him and nobody else)
Pretty sure I need to Group by AssignedTo, and an Inner Join, but just can't fit it together properly to make it happen.
This query is going to report a single person resolution % in a call center environment.
Thanks in Advance
Cases
CaseNo, AssignedTo
Activities
CaseNo, CreatedBy
There are many Activities for each Case (calls in and calls out) and both tables have many many more fields than I have discribed above. I need to identify a percentage for each owner (grouped by owner) to measure what ratio of a person's Cases contain no Activities created by someone other than the person assigned to the Case, compared to ones that do. End Result I need is:
Joe 85%
Don 50%
Ron 95% (of his cases had activities that were created by him and nobody else)
Pretty sure I need to Group by AssignedTo, and an Inner Join, but just can't fit it together properly to make it happen.
This query is going to report a single person resolution % in a call center environment.
Thanks in Advance