Hi all
In the attached db, I am trying to create a query, MandatoryTrainingDeliveredQ, which takes in info from MandatoryEmployeeTrainingQ and EmployeeXCourse_JT, using EmployeeID as the common field. I am however getting duplicate values. The short description of db is as follows:
Now to get the record of JUST the mandatory trainings, I am trying to create a new query called MandatoryTrainingDeliveredQ and trying to attach above query with EmployeeXCourse table. In the output, I should only get the mandatory trainings which have been delivered i.e., have a certificationdate.
Many many thanks for your time and help, in advance
In the attached db, I am trying to create a query, MandatoryTrainingDeliveredQ, which takes in info from MandatoryEmployeeTrainingQ and EmployeeXCourse_JT, using EmployeeID as the common field. I am however getting duplicate values. The short description of db is as follows:
- EmployeeT - EmployeeID (PK), FirstName, LastName, PositionID (FK), DeptID (FK)
- CourseNameT - CourseID (PK), and lists all the training courses in CourseName
- CourseDeliveryT - DeliverID (PK), and contains CourseID (FK), CourseCode, ProviderID (FK), Cost
- EmployeeXCourse_JT - EmployeeID, DeliverID, CertificationDate (all three are PK and form composite key, to avoid duplication), CourseID (FK). Lists all the training provided to employees
- RoleXCourse_JT - ID (PK), PositionID (FK), CourseID (FK). Denotes courses mandatory for each role
- RoleXEmployee_JT - ID (PK), PositionID (FK), EmployeeID (FK). Denotes roles assigned to each employee
Now to get the record of JUST the mandatory trainings, I am trying to create a new query called MandatoryTrainingDeliveredQ and trying to attach above query with EmployeeXCourse table. In the output, I should only get the mandatory trainings which have been delivered i.e., have a certificationdate.
Many many thanks for your time and help, in advance
Attachments
Last edited: