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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to