M
Mike
Please help, I am pulling out my hair on this one.
I have a query I need to compare the previous record with these current
record and calculate the difference in Oil or Gas from the previous day.
And unsure how to do this.
Example:
Date Product Gals
5/3/05 Gas 5
5/2/05 Gas 4
5/1/05 Gas 6
5/3/05 Oil 10
5/2/05 Oil 12
5/1/05 Oil 3
Output/Result should be:
(Need to Calculate the Change from Day to Day)
Date Product Gals Change
5/3/05 Gas 5 1
5/2/05 Gas 4 -2
5/1/05 Gas 6 Nothing
5/3/05 Oil 10 -2
5/2/05 Oil 12 10
5/1/05 Oil 3 Nothing
Thank you in advance for any help!!!!!
Mike
I have a query I need to compare the previous record with these current
record and calculate the difference in Oil or Gas from the previous day.
And unsure how to do this.
Example:
Date Product Gals
5/3/05 Gas 5
5/2/05 Gas 4
5/1/05 Gas 6
5/3/05 Oil 10
5/2/05 Oil 12
5/1/05 Oil 3
Output/Result should be:
(Need to Calculate the Change from Day to Day)
Date Product Gals Change
5/3/05 Gas 5 1
5/2/05 Gas 4 -2
5/1/05 Gas 6 Nothing
5/3/05 Oil 10 -2
5/2/05 Oil 12 10
5/1/05 Oil 3 Nothing
Thank you in advance for any help!!!!!
Mike