I have 5 rows of data coming into my database every 2 hours from a GSM modem and I require only the last (latest) row of data as thats the only relevant one but need all of the data for a chart…
Is there a way of using something to only recall one row after every fourth.
Example.
1pm
23, 25, 20,99,21
3pm
34, 56, 55, 65, 30
only showing 21 and 30 in data.
With CTE: