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