We have a system that stores data, but the only relevant data for us is the first bit of data for the day, and the latest bit of data for the day.
We want to run an S