I have a table containing row for each user, that user has also department field,and columns specify the roles the user owns, each role in column, so one user can only have 1 column (1 row) or more that that.Eventually I need count amount for each role in each department.
So let's say I have table A, and wants to turn in to Table B, so i can create a pivot to create table C.Getting Table C from A without table B is also an option
How is that can be achieved ?
