Syntax
GROUP_DIFF(<number or date>; [<number><number>])
Description
Calculates the difference between the current value and the previous value seen in the group. The optional ["initial value"] argument is used as result for the first record. This defaults to null.
...