Hello so I have a table as such in SQlite:
User | Group | Role
John Smith | A | admin
John Smith | B | user
Jane Doe | A | user
Jane Doe | B | limit
Jane Doe | C | admin
Jack Brown | A | admin, user
I want to transpose the table so there is only one user per row.The column headers are "Group". The values for "Group" would be values in the "Role" column from the first table.
So, it would look as such when transformed:
User | A | B | C
John Smith | admin | user |
Jane Doe | user | limit | admin
Jack Brown | admin,user| |
How would one go about doing this SQLite?