Get value from previous hour and subtract from current value in SQL

前端 未结 0 510
心在旅途
心在旅途 2021-01-24 01:26

I need to subtract level value from previous hour max(date)\'s level value but I\'m confuse how to get the last record and subtract it according to hour wise.

My table re

相关标签:
回答
  • 消灭零回复
提交回复
热议问题