I have a bridge table that helps me track the employees and the mandatory courses they have to take and keep track of when the do it.
completed_training [employee_id^, course_id^, date_completed]
employees [id^, first_name, last_name]
training_courses [course_id, course_name]
^foreign_key
data in the completed_training bridge
|employee_id | course_id | date
| 1 | 1 | null
| 1 | 2 | null
I have a while loop that goes through and builds out a table and duplicates the employee id with the course_id. How do I combine the course_id onto one so I can group the employee_id?