I have a table with Employees and Employee Roles. Employees can have any number of roles. There are 27 roles to be exact. Now the thing is some employees may have only one role all the way on the 27th role column. What I want to do is update the table to where for each employee, all of their roles are copied to the first open column available. This way there arent many blanks between columns. Example
This is how it looks now:
However I want this:
This is how it looks now:
Employee Role Role Role Role Role
1 x x
2 x x
3 x x x x
4 x
5 x
However I want this:
Employee Role Role Role Role Role
1 x x
2 x x
3 x x x x
4 x
5 x
Last edited: