Hi again
As some of you already know I am working on building an employee training record db. I have become stuck at one issue in this db which I believe is down to how I have structured my data. The main functionality that I am looking out of it is to keep record of trainings employees have done, when they did it, and when does it expire. The trainings have to be classified as general and mandatory. Which training is mandatory depends on what role(s) an employee hold. Mandatory training for some roles may be offered as general training to other employees even if they do not hold that role e.g., first aid training may be mandatory for Health and Safety Officer, but may also be provided to a few other employees even if they are not Health and Safety Manager.
The way I have gone about structuring the db can be seen in detail in the cut down db I am attaching. In summary, I have a junction table between employees and courses which stores all trainings done by all employees, regardless of mandatory or general. I then have other junction tables to:
The closes I have gotten is by using Mandatory2Q query in the db. But that does not show all the trainings.
Thanks for your time and help, in advance!
As some of you already know I am working on building an employee training record db. I have become stuck at one issue in this db which I believe is down to how I have structured my data. The main functionality that I am looking out of it is to keep record of trainings employees have done, when they did it, and when does it expire. The trainings have to be classified as general and mandatory. Which training is mandatory depends on what role(s) an employee hold. Mandatory training for some roles may be offered as general training to other employees even if they do not hold that role e.g., first aid training may be mandatory for Health and Safety Officer, but may also be provided to a few other employees even if they are not Health and Safety Manager.
The way I have gone about structuring the db can be seen in detail in the cut down db I am attaching. In summary, I have a junction table between employees and courses which stores all trainings done by all employees, regardless of mandatory or general. I then have other junction tables to:
- establish link between roles and courses - to define which courses are mandatory for what roles
- establish link between roles and employees - to define which employees hold which roles
The closes I have gotten is by using Mandatory2Q query in the db. But that does not show all the trainings.
Thanks for your time and help, in advance!
