I have a table with data that is updated every 5 minutes.
| TimeStamp | Data |
| 1 | 2 |
| 2 | 8 |
| 3 | 16 |
How can I select this data in such a way that it does not show the data, but the difference between the last timestamp, like this:
| TimeStamp | Data |
| 1 | 2 |
| 2 | 6 |
| 3 | 8 |