Compute data between record of SQL database within Visual Studio

Posted by Carl on Stack Overflow See other posts from Stack Overflow or by Carl
Published on 2010-04-26T19:08:13Z Indexed on 2010/04/26 19:13 UTC
Read the original article Hit count: 467

Filed under:
|
|

Hello, I am attempting to calculate the miles per gallon for logged fuel full-ups. My table consists of the flowing:

FillUp(CarID, Date, ODReading, Gallons, StopGo, Highway, FillupID, MPG)

I want to subtract the ODReading from the previous record and divide gallons by this computed value.

How do I work between records to achieve this within Visual Studio 2008's column properties (formula) section?

Thanks much, Carl

© Stack Overflow or respective owner

Related posts about compute

Related posts about between