this one's got me stumped. Am I missing something or do the team need to change the way the data gets dumped into my database?
I'm calculating time spent in "Extended Worktime" but want to exclude all of the users that have been logged in to "Tier 2" on that day.
The issue being that column "Class Name" only populates when users log in and not when they go on "Extended Worktime". My question: is there a query I can script that will identify that Agent is on Tier 2 for that day and exclude that from my report?
If there is a gentle nudge in the right direction would be much appreciated.
| ROWID | Agent_First_Name | Type | AgentID | Exno | Duration | LoginDateTime | BreakReason | Class | ClassName |
|---|---|---|---|---|---|---|---|---|---|
| 61272 | Dave | L | 100 | 3382 | 0 | 17/11/2021 08:00:24 | 10 | Tier 1 | |
| 61273 | Dave | W | 100 | 142 | 17/11/2021 08:07:24 | Extended Worktime | 0 | ||
| 61274 | Dave | W | 100 | 112 | 17/11/2021 08:15:24 | Extended Worktime | 0 | ||
| 61275 | John | L | 320 | 4201 | 0 | 17/11/2021 09:04:24 | 9 | Tier 2 | |
| 61276 | John | W | 320 | 100 | 17/11/2021 10:13:24 | Extended Worktime | 0 | ||
| 61277 | John | W | 320 | 85 | 17/11/2021 11:15:24 | Extended Worktime | 0 |