S
Steve A
Hi,
I have three tables... Bus, Dead and Runs which are linked together through
the Bus table. I am wanting to know how to find the minimum and maximum
values of miles travelled for each vehicle within bus. The mileage values
are stored in two tables however as they relate to different things. Not
every Reg in tblBus is necessarily in each of the other two tables, but I
need to know that vehicles lowest recorded mileage and its highest recorded
value, so that I can calculate the total mileage travelled by each vehicle
and the total cumulative mileage travelled.
The table set up is below.
I'm sure this is possible, but am having real trouble working out how. Any
help will be greatly appreciated.
Thanks
Steve A
-----------------------------------------------------------------------------------------------
tblBus
-------
Reg(Pk)
tblDead
---------
JobNo(Pk)
Reg(Fk)
StartM
FinishM
other irrelevant fields
tblRuns
--------
tblDead
---------
JobNo(Pk)
Reg(Fk)
StartM
FinishM
other irrelevant fields
I have three tables... Bus, Dead and Runs which are linked together through
the Bus table. I am wanting to know how to find the minimum and maximum
values of miles travelled for each vehicle within bus. The mileage values
are stored in two tables however as they relate to different things. Not
every Reg in tblBus is necessarily in each of the other two tables, but I
need to know that vehicles lowest recorded mileage and its highest recorded
value, so that I can calculate the total mileage travelled by each vehicle
and the total cumulative mileage travelled.
The table set up is below.
I'm sure this is possible, but am having real trouble working out how. Any
help will be greatly appreciated.
Thanks
Steve A
-----------------------------------------------------------------------------------------------
tblBus
-------
Reg(Pk)
tblDead
---------
JobNo(Pk)
Reg(Fk)
StartM
FinishM
other irrelevant fields
tblRuns
--------
tblDead
---------
JobNo(Pk)
Reg(Fk)
StartM
FinishM
other irrelevant fields