Hello,
I have a SQL Server 2005 database table, which has a datetime column. I write an entry in this table every time a service processes an incoming request.
What I would like to get is a breakdown of the time spans between sequential entries.
If the data is:
2009-10-30 04:06:57.117
2009-10-30 03:52:44.383
2009-10-30 03:42:00.990
2009-10-30 03:41:59.160
2009-10-30 03:17:07.563
I would like:
< 10 minutes: 1
10 - 20 minutes: 2
20 - 30 minutes: 1
The breakdown groupings are unimportant. I just want to get a feel for how long there is between entries. In fact what I will eventually use this for is to determine the time span which 99% of the entries are at least as close to another as.
Many thanks, James