i want result to be in the required format given below:
here is the result
column A
----------------
5
7
10
14
22
30
....
i want output to be in this form with a single sql statement:
column A column B
---------------- ----------------
5 2(difference b/n the current record and the next record)
7 3
10 4
14 8
22 8
30 0
can any one plz post the query which gives the above kind of result..
thnx in advance..