Difference in Value between latest two rows?
Another way using lag() to access the previous value and TOP to only get the latest.

SELECT TOP(1)
       value - lag(value, 1, 0) OVER (ORDER BY registerdate)
       FROM elbat
       ORDER BY registerdate DESC;