Page 1 of 1

How to create a matrix out of two columns?

Posted: Fri 08 May 2020 06:19
by tarancepil7
I have one table with student registrations containing the student's school name and class. I would like to "explode" this data into a matrix with one row per school and as many columns as there are classes (10). Is this possible with MySQL, or do I need to make a query grouped by classes for each school?

Re: How to create a matrix out of two columns?

Posted: Fri 08 May 2020 10:57
by alexa
We recommend you to refer to some dedicated SQL forums on this as we provide technical support only on dbForge products.