mptwoadmin
Programmer
Hi,
I have the following data and am trying to calculate the count based on start & end times..but i cannot think of how to start in SQL. Can someone help me Please?
1.start time "2011-03-07 07:18:36.0000000" 61862
2.end time "2011-03-07 08:03:04.2920000" 471
Around 7:30 the data values reset.
I know the following 61862 - 63456 + 471..But I cannot think of how to do this in SQL correctly.
--Data--
Date/time Value
2011-03-07 07:18:36.0000000 61862
2011-03-07 07:22:38.5720000 62607
2011-03-07 07:26:41.1440000 63456
2011-03-07 07:30:43.7160000 434
2011-03-07 07:34:46.2880000 471
2011-03-07 07:38:48.8600000 471
2011-03-07 07:42:51.4320000 471
2011-03-07 07:46:54.0040000 471
2011-03-07 07:50:56.5760000 471
2011-03-07 07:54:59.1480000 471
2011-03-07 07:59:01.7200000 471
2011-03-07 08:03:04.2920000 471
Thanks
I have the following data and am trying to calculate the count based on start & end times..but i cannot think of how to start in SQL. Can someone help me Please?
1.start time "2011-03-07 07:18:36.0000000" 61862
2.end time "2011-03-07 08:03:04.2920000" 471
Around 7:30 the data values reset.
I know the following 61862 - 63456 + 471..But I cannot think of how to do this in SQL correctly.
--Data--
Date/time Value
2011-03-07 07:18:36.0000000 61862
2011-03-07 07:22:38.5720000 62607
2011-03-07 07:26:41.1440000 63456
2011-03-07 07:30:43.7160000 434
2011-03-07 07:34:46.2880000 471
2011-03-07 07:38:48.8600000 471
2011-03-07 07:42:51.4320000 471
2011-03-07 07:46:54.0040000 471
2011-03-07 07:50:56.5760000 471
2011-03-07 07:54:59.1480000 471
2011-03-07 07:59:01.7200000 471
2011-03-07 08:03:04.2920000 471
Thanks