Hi,
I have built a database for my triathlon and running race results. My goal is to enter my swim, bike and run times and then calculate based on the distance of each, the time per 25m for the swim, the km/hr for the bike and the km/hr and min/km for the run. And if I just do a run, the km/hr and min/km. Everything seemed to be ok until I wanted to calculate my km/hr and min/km. I had asked for help in the queries section and was given a formula which worked well until I realized that not all triathlons are the same distance and not all events are the same distance either. For example a sprint triathlon is usually 750m swim, 20km bike and 5km run, but I have done some which have a 500m swim or a 27km bike etc and my formulas don't work because I put fixed numbers. And the comment in the queries from was that maybe my tables are not normalized properly.
Here are my tables :
tblage : for the age categories eg. 40-44, 45-49 etc
tbltype : for the type of event eg. sprint triathlon, olympic triathlon, 5km run etc.
tbldistance : distance of the event eg. 750m-20k-5k, 1k-27k-8k etc.
tblevent : the name of the event eg. Esprit Triathlon de Montréal, Triathlon Ste-Agathe etc.
tblrace : the main table that contains the data like the date, bib #, weather, comments and all the race times.
Note that an event may have many types and distances, so I could do a sprint triathlon at Esprit Triathlon de Montréal, but the next year I could do an Olympic triathlon at the Esprit Triathlon de Montréal. Also as mentioned not all sprint triathlons are the same distance.
But I can only do one race at a time, so when I am entering a record in tbl race, I can only choose 1 type of race, 1 distance and 1 event.
For the race times, they are all number fields in order to allow me to do calculations and proper sorting.
Can you please take a look at my tables and see if they make sense.
I am wondering if in the tbldistance I should add numeric fields because the field 750m-20km-5km is a text field.
Thank you
If you need to see my database, I can send it, it is in Access 2003
I have built a database for my triathlon and running race results. My goal is to enter my swim, bike and run times and then calculate based on the distance of each, the time per 25m for the swim, the km/hr for the bike and the km/hr and min/km for the run. And if I just do a run, the km/hr and min/km. Everything seemed to be ok until I wanted to calculate my km/hr and min/km. I had asked for help in the queries section and was given a formula which worked well until I realized that not all triathlons are the same distance and not all events are the same distance either. For example a sprint triathlon is usually 750m swim, 20km bike and 5km run, but I have done some which have a 500m swim or a 27km bike etc and my formulas don't work because I put fixed numbers. And the comment in the queries from was that maybe my tables are not normalized properly.
Here are my tables :
tblage : for the age categories eg. 40-44, 45-49 etc
tbltype : for the type of event eg. sprint triathlon, olympic triathlon, 5km run etc.
tbldistance : distance of the event eg. 750m-20k-5k, 1k-27k-8k etc.
tblevent : the name of the event eg. Esprit Triathlon de Montréal, Triathlon Ste-Agathe etc.
tblrace : the main table that contains the data like the date, bib #, weather, comments and all the race times.
Note that an event may have many types and distances, so I could do a sprint triathlon at Esprit Triathlon de Montréal, but the next year I could do an Olympic triathlon at the Esprit Triathlon de Montréal. Also as mentioned not all sprint triathlons are the same distance.
But I can only do one race at a time, so when I am entering a record in tbl race, I can only choose 1 type of race, 1 distance and 1 event.
For the race times, they are all number fields in order to allow me to do calculations and proper sorting.
Can you please take a look at my tables and see if they make sense.
I am wondering if in the tbldistance I should add numeric fields because the field 750m-20km-5km is a text field.
Thank you
If you need to see my database, I can send it, it is in Access 2003