Hi,
I have a table with unique number of vehicle and the shift it works in. There are columns for number of vehicle, shift, starting km and ending km. I want to subtract or only compare the values form the columns ending km and starting km from the consecutive rows depending on the shift. I ordered the table by date, number of the vehicle and shift, but I don't know how to compare the fields starting km from one row (the first row for example) and the ending km field from the row after it ( i.e. the second row) in this case?
Can anybody help me please?
Thanks in advance.
I have a table with unique number of vehicle and the shift it works in. There are columns for number of vehicle, shift, starting km and ending km. I want to subtract or only compare the values form the columns ending km and starting km from the consecutive rows depending on the shift. I ordered the table by date, number of the vehicle and shift, but I don't know how to compare the fields starting km from one row (the first row for example) and the ending km field from the row after it ( i.e. the second row) in this case?
Can anybody help me please?
Thanks in advance.