
October 26th, 2009, 05:07 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 6
Time spent in forums: 42 m 17 sec
Reputation Power: 0
|
|
Time series query to get concurrency
Hi
I have a dataset which has a list of 'jobs' containing
ID, starttime, endtime
I'm trying to design a query which can tell me how many concurrent jobs I had vs time.
In other words, let's say I have
ID starttime endtime
1 11:00 11:03
2 11:01 11:05
3: 11:02 11:03
4: 11:04 11:07
and want the concurrency at a minute interval. I would get
time numberOfConcurrent
11:00 1
11:01 2
11:03 2
11:04 2
Does anyone know if such a query could even be constructed?
Thanks
|