I don't think you can achieve this in a single select statement, but it would be a very simple program.
It is easy enough to get the first 5 records, or the records within 5 minutes of the first, from a single select - the hard part is to keep iterating through the database without having a 'controlling' program of some kind. ..... unless someone has an idea .... On Sunday, 30 October 2016 11:04:56 UTC+2, stefano siega wrote: > Someone can help me to do the correct select statement from database to > mediate 5 entries to one and preserve max and min loop values? > > Many thanks > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.