Revolution1200
Programmer
Hi, hopefully someone will be able to help with this.
I am trying to build up the total amount of time we have agents logged in grouped by 15 minute intervals.
The data returned from the table looks like this
TimeStamp AgentLogin Action seq
08:30:00 1000 LI 1
08:30:00 1001 LI 1
08:45:00 1002 LI 1
08:50:00 1002 LO 2
Where LI = Log in and LO = Log out
Unless the agent logs out there will be no LO entry for the agent.
For the above example if queried at 09:00:00 i am looking to return the following values
Time Total Logged in time
08:30:00 to 08:45:00 00:30:00
08:45:00 to 09:00:00 00:35:00 <- IE all agents were logged in at this point but 1 logged out after 5 minutes.
This is for an application written in VB6.
Thanks for any pointers.
Stuart
I am trying to build up the total amount of time we have agents logged in grouped by 15 minute intervals.
The data returned from the table looks like this
TimeStamp AgentLogin Action seq
08:30:00 1000 LI 1
08:30:00 1001 LI 1
08:45:00 1002 LI 1
08:50:00 1002 LO 2
Where LI = Log in and LO = Log out
Unless the agent logs out there will be no LO entry for the agent.
For the above example if queried at 09:00:00 i am looking to return the following values
Time Total Logged in time
08:30:00 to 08:45:00 00:30:00
08:45:00 to 09:00:00 00:35:00 <- IE all agents were logged in at this point but 1 logged out after 5 minutes.
This is for an application written in VB6.
Thanks for any pointers.
Stuart