Hi Guys,
The database I'm currently working on is for a scientific instrument that records data at certain points in time. My instrument records per second, but with a resolution of 5 seconds.
ID Total Particles DateandTime
38313 602 2009-01-27 16:25:48.000
38314 602 2009-01-27 16:25:49.000
38315 602 2009-01-27 16:25:50.000
38316 602 2009-01-27 16:25:51.000
38317 602 2009-01-27 16:25:52.000
38318 553 2009-01-27 16:25:53.000
38319 553 2009-01-27 16:25:54.000
38320 553 2009-01-27 16:25:55.000
38321 553 2009-01-27 16:25:56.000
38322 553 2009-01-27 16:25:57.000
38323 515 2009-01-27 16:25:58.000
38324 515 2009-01-27 16:25:59.000
38325 515 2009-01-27 16:26:00.000
38326 515 2009-01-27 16:26:01.000
38327 515 2009-01-27 16:26:02.000
This is useful for us in some situations, but isn't relevant for this part of the project. I'd like to collapse this data so that there was one result per 5 seconds (say the final second can hold all the data for convention).
I'd prefer a solution that didn't skip 4 rows and display the 5th as that may not work if my instument messed up and only gave me 4 rows in the db. What I'd like is some way of comparing the rows around each sample and condensing based on that.
I don't really know where to start with an operation like this so any help would be appreciated.