By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
DateTime | MonitorId | Value | Status | LAGValue |
---|---|---|---|---|
2022-11-21 00:00:05.000 | 1 | 5.00 | 10 | null |
2022-11-21 00:01:05.000 | 1 | 10.00 | 10 | 5.00 |
2022-11-21 00:02:05.000 | 1 | 15.00 | 1 | 10.00 |
2022-11-21 00:03:05.000 | 1 | 20.00 | 1 | 15.00 |
2022-11-21 00:04:05.000 | 1 | 30.00 | 1 | 20.00 |
2022-11-21 00:05:05.000 | 1 | 123.00 | 10 | 30.00 |
2022-11-21 00:06:05.000 | 1 | 456.00 | 10 | 123.00 |
2022-11-21 00:07:05.000 | 1 | 789.00 | 10 | 456.00 |
2022-11-21 00:00:05.000 | 2 | 5.00 | 10 | null |
2022-11-21 00:01:05.000 | 2 | 10.00 | 10 | 5.00 |
2022-11-21 00:02:05.000 | 2 | 15.00 | 1 | 10.00 |
2022-11-21 00:03:05.000 | 2 | 20.00 | 1 | 15.00 |
2022-11-21 00:04:05.000 | 2 | 30.00 | 1 | 20.00 |
2022-11-21 00:05:05.000 | 2 | 123.00 | 10 | 30.00 |
2022-11-21 00:06:05.000 | 2 | 456.00 | 10 | 123.00 |
2022-11-21 00:07:05.000 | 2 | 789.00 | 10 | 456.00 |