- Moderator
- #1
I'm faced with a scenario that I need to write a report for.
I have phone logs.... they look similar to this:
Line Start Time End Time
trunk1 12:00:01 12:15:15
trunk2 12:10:00 12:20:00
trunk3 12:18:00 12:30:00
(that's the basics)
What I need is a graph, showing lines in use. Not just how many minutes each line was in use (that would be easy), but something like:
3 lines in use XXX
2 lines in use XXXXXX
1 line in use XXXXXXXXXXXXXXXXX
.... so that you could see, at a glance, how long BOTH lines were in use.
I hope I'm making sense.... essentially, we need to show how many minutes on a week, month, etc. that ALL lines were in use, or 3 lines, or 2 lines, or 1 line.
The only way I can think to do this is to loop minute by minute, and take a count of how many lines were in use at that minute, and tally it all up. Needless to say, a loop this size would be very costly.
What do you folks think?
TIA!
Just my 2ó
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg
I have phone logs.... they look similar to this:
Line Start Time End Time
trunk1 12:00:01 12:15:15
trunk2 12:10:00 12:20:00
trunk3 12:18:00 12:30:00
(that's the basics)
What I need is a graph, showing lines in use. Not just how many minutes each line was in use (that would be easy), but something like:
3 lines in use XXX
2 lines in use XXXXXX
1 line in use XXXXXXXXXXXXXXXXX
.... so that you could see, at a glance, how long BOTH lines were in use.
I hope I'm making sense.... essentially, we need to show how many minutes on a week, month, etc. that ALL lines were in use, or 3 lines, or 2 lines, or 1 line.
The only way I can think to do this is to loop minute by minute, and take a count of how many lines were in use at that minute, and tally it all up. Needless to say, a loop this size would be very costly.
What do you folks think?
TIA!
Just my 2ó
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg