Gary If the data is in a table called readings then I assume 'table_name'.a refers to readings - but what does 'table_name'.b referring to??
On Tuesday, 8 November 2016 10:51:16 UTC+2, gjr80 wrote: > Andrew, > > My SQL is somewhat rusty but what about something like: > > SELECT a.* > FROM 'table_name' a > LEFT JOIN 'table_name' b > ON a.id=b.id AND a.datetime<b.datetime > WHERE b.datetime IS NULL > > where the table is table_name. Not tested. > > Gary > > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
