MySQL Forums
Forum List  »  General

How to create a matrix out of two columns?
Posted by: BenjaminLucas BenjaminLucas
Date: May 07, 2020 05:02AM

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?

Options: ReplyQuote


Subject
Written By
Posted
How to create a matrix out of two columns?
May 07, 2020 05:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.