Additional help anyone.
I'm trying to get the value of per column 1 and 2 based on time which is column 4.
This is my table
This is what I'm trying to achieve as a result.
as you can see the last row is not there anymore because row 1 and last row is the same when it comes to sensor_id and event_type but row 1 (time) is higher than last row(time)
This is my code so far
SELECT `sensor_id`,`event_type`,`value`, time FROM `events` ORDER BY `time` DESC