Im trying to compute a 24 hour rms (root mean squared) from a dataset stored in MySQL. I Need to grab the last 24 hours of points that occur within 24 hour period before a particular row offset. For instance if I wanted to compute 24hour rms for row id 1250 which has a timestamp of June 7th 2007 at midnight I would need to get all the points that happen between it and June 6th 2007 at midnight.
Share
Off the top of my head… (MYSQL)
(T-SQL)
You may have to adjust the datetime type to match your data.