Miles per gallon for each record

dr.bob

Registered User.
Local time
Today, 16:34
Joined
Jan 5, 2006
Messages
11
I am working on a database to help me compare MPG between using different brands and octane ratings. How do i cause each record to calculate MPG? The database would have to calculate odometer differences from the last odometer reading and divide number of gallons bought.:confused:

I hope this is clear.

Thanks,

Dr. Bob
 
It really seems like a job for Excel.
(Unless you are already using a fleet management database, and want to add this feature.)
 
It should not be difficult to get the previous odometer reading (DMax or subquery would work). From there, a simple matter to get MPG.
 

Users who are viewing this thread

Back
Top Bottom