S
steenman2
I am looking to subtract number inside the same field. and then return
the difference to a new field (column). This data is used to generate a
graph and the this is currently done by hand. I know there has to be an
easier way to do this.
Below is an example of what I am looking for.
Value(s) Result(s)
-70 0
-70 1.02
-68.98 1.09
-67.89 3.11
-71 .71
-69.29 1.52
-67.77
So what I am doing is subtracting row two from row one. The difference
is then put in another field(column) in row one. The process repeats,
row three from two, four from three, five from four, etc, etc. This
occurs for hundreds of rows.
Is there a SQL statement that can do this or is it something that has
to be done in VB.
Thanks for your help.
the difference to a new field (column). This data is used to generate a
graph and the this is currently done by hand. I know there has to be an
easier way to do this.
Below is an example of what I am looking for.
Value(s) Result(s)
-70 0
-70 1.02
-68.98 1.09
-67.89 3.11
-71 .71
-69.29 1.52
-67.77
So what I am doing is subtracting row two from row one. The difference
is then put in another field(column) in row one. The process repeats,
row three from two, four from three, five from four, etc, etc. This
occurs for hundreds of rows.
Is there a SQL statement that can do this or is it something that has
to be done in VB.
Thanks for your help.