Thanks in advance for any help rendered!
I think that this example will be easier to follow than the actual DB.
I have two tables. One contains car id, date, driver, and maintenance activities (over 100 different activities fall under this column including oil changes, engine overhaul). The second table has date, car id, driver and mileage. Each time an activity occurs, a single record is written to the mileage table and any number of records is written to the activities table depending on what tasks were performed (oil change, brake job, wiper blades changed would equal 3 records). The odometer is reset at each activity even if it is for wiper blades alone (so there is no running total, just in between every maintenance event).
My question is: how do/can I querry the two tables to get back all tasks performed between overhauls and the total mileage between overhauls.
And yes as you have guessed, I am new at this!
Thanks,
Lee
I think that this example will be easier to follow than the actual DB.
I have two tables. One contains car id, date, driver, and maintenance activities (over 100 different activities fall under this column including oil changes, engine overhaul). The second table has date, car id, driver and mileage. Each time an activity occurs, a single record is written to the mileage table and any number of records is written to the activities table depending on what tasks were performed (oil change, brake job, wiper blades changed would equal 3 records). The odometer is reset at each activity even if it is for wiper blades alone (so there is no running total, just in between every maintenance event).
My question is: how do/can I querry the two tables to get back all tasks performed between overhauls and the total mileage between overhauls.
And yes as you have guessed, I am new at this!
Thanks,
Lee