Hi All,
I'm constructing a db now which going to record trainings, trainers and evaluation. The training should have information of name of the trainer and it's possible to have more than one trainer. At the end of the training, all trainers are assessed individually and given a score (scale 1-4). Each trainer can be involve also in more than one training.
Now, in the database, I want to capture all the scores of a trainer for all the trainings s/he facilitated. These scores will be averaged to conclude whether s/he is a good trainer.
I see this as many-to-many relationship, which is already complicated, and additionally there is problem of capturing the score. In my db construct, I have now 2 tables: training and trainers.
Training table:
- training_ID - primarykey
- training_title - text
- training_trainer1 - number - linked to trainers tbl (lookup)
- training_trainer2 - number - linked to trainers tbl
- training_trainer3 - number - linked to trainers tbl
- training_trainer_eval1 - number - eval score for trainer1
- training_trainer_eval2 - number - eval score for trainer2
- training_trainer_eval3 - number - eval score for trainer3
My question for the above: is it correct to make multiple fields like that? Do you have better suggestion? How should the relationship be to the trainerstbl?
Trainers table
- trainer_ID - primarykey
- trainer_name - text
- trainer_eval - calculated field taking from average of eval score
My question for the above: is it possible to do like that (averaging and put into a field?)? How would you suggest ?
I'm constructing a db now which going to record trainings, trainers and evaluation. The training should have information of name of the trainer and it's possible to have more than one trainer. At the end of the training, all trainers are assessed individually and given a score (scale 1-4). Each trainer can be involve also in more than one training.
Now, in the database, I want to capture all the scores of a trainer for all the trainings s/he facilitated. These scores will be averaged to conclude whether s/he is a good trainer.
I see this as many-to-many relationship, which is already complicated, and additionally there is problem of capturing the score. In my db construct, I have now 2 tables: training and trainers.
Training table:
- training_ID - primarykey
- training_title - text
- training_trainer1 - number - linked to trainers tbl (lookup)
- training_trainer2 - number - linked to trainers tbl
- training_trainer3 - number - linked to trainers tbl
- training_trainer_eval1 - number - eval score for trainer1
- training_trainer_eval2 - number - eval score for trainer2
- training_trainer_eval3 - number - eval score for trainer3
My question for the above: is it correct to make multiple fields like that? Do you have better suggestion? How should the relationship be to the trainerstbl?
Trainers table
- trainer_ID - primarykey
- trainer_name - text
- trainer_eval - calculated field taking from average of eval score
My question for the above: is it possible to do like that (averaging and put into a field?)? How would you suggest ?