MariaDB: PIVOT


I googled “mariadb pivot” and the first answer was this. Ouch, this is a big (and complex) procedure. Then I scrolled down, but I couldn’t find a quick answer, so I created one. Here is the template:

Keep it simple :-)