Garren.Shannon
Member
- Local time
- Today, 04:52
- Joined
- Sep 22, 2022
- Messages
- 113
Hey all,
Several folks have noted that my table design is incorrect and I now see why but I can't think of a better way to design it. Here is what I have.
Vehicle table - ID, VehicleName, CurrentOD
Trip Table - ID, Vehicle, Depart-OD, Return-OD
I need to track current mileage per bus. I also need to track start and finish OD per trip. Bus drivers report their trips at the end of the day.
What is the best way to keep the Vehicle CurrentOD up-to-date? I am thinking that simply getting the difference between trip starting and ending OD and ADDING that to the Vehicle current OD would work.
Any better ideas?
Several folks have noted that my table design is incorrect and I now see why but I can't think of a better way to design it. Here is what I have.
Vehicle table - ID, VehicleName, CurrentOD
Trip Table - ID, Vehicle, Depart-OD, Return-OD
I need to track current mileage per bus. I also need to track start and finish OD per trip. Bus drivers report their trips at the end of the day.
What is the best way to keep the Vehicle CurrentOD up-to-date? I am thinking that simply getting the difference between trip starting and ending OD and ADDING that to the Vehicle current OD would work.
Any better ideas?