I have this result set in MySQL :
ID Type Email Degignation
1000000000 202 [email protected] Entrepreneur
1000000000 234 [email protected] Engineering,Development
1000000000 239 [email protected] CTO
I have many such tuples not only three . I want Type to be column and last column to become row value for them . Like below
ID 202 234 239 Email
1000000000 Entrepreneur Engineering,Development CTO [email protected]
question from:https://stackoverflow.com/questions/65947173/how-to-pivot-rows-into-columns-using-mysql-with-dynamic-columns