I'm having a blonde moment, I have a timestamp and value column that I want to query from a PHP MySQL table "mytable". However I would like only get one value and the corresponding timestamp for the one value. For example:
value,timestamp
23,2016-09-01 00:04:05
23,2016-09-01 00:04:05
23,2016-09-02 01:04:05 < --- extract this
24,2016-09-02 01:05:13
24,2016-09-03 01:04:24
27,2016-09-03 03:24:34
27,2016-09-04 04:24:42
27,2016-09-05 05:54:12
27,2016-09-06 00:04:05
27,2016-09-07 00:04:05 < --- extract this
28,2016-09-08 00:04:05 < --- extract this
I want to be able to extract from the above table, onevalue and it's corresponding timestamp
value,timestamp
23,2016-09-02 01:04:05
27,2016-09-07 00:04:05
28,2016-09-08 00:04:05
Q: What would be the query look like?