S
Sandeman
Perhaps it is very simple but i can't find it. I have this table
tblKilometers.
CarID Month Amount of kilometers on teller(at the
end of the month)
AABBCC 1 1000
AABBCC 2 2000
AABBCC 3 2500
... .... ... ...
Nu zoek ik de sql code die automatische de laatste kilometerstand aftrekt
van de voorlaatste. Dus eigenlijk de verreden kilometers per maand berekend
zoals hieronder weergegeven.
I am searching for some SQL code to substract the the last amount of
kilometers on the teller and the one before. As a result i have the
kilometers driven in a month like in the next table.
CarID month kilometers driven
AABBCC 1 1000
AABBCC 2 1000
AABBCC 3 500
Can anybody help me with this code?
tblKilometers.
CarID Month Amount of kilometers on teller(at the
end of the month)
AABBCC 1 1000
AABBCC 2 2000
AABBCC 3 2500
... .... ... ...
Nu zoek ik de sql code die automatische de laatste kilometerstand aftrekt
van de voorlaatste. Dus eigenlijk de verreden kilometers per maand berekend
zoals hieronder weergegeven.
I am searching for some SQL code to substract the the last amount of
kilometers on the teller and the one before. As a result i have the
kilometers driven in a month like in the next table.
CarID month kilometers driven
AABBCC 1 1000
AABBCC 2 1000
AABBCC 3 500
Can anybody help me with this code?