mySQL pivot tables following UNION join
Hi All,
There is something I want explore if that is even possible. I have some code written for mySQL 5.5 that is available here.
http://sqlfiddle.com/#!9/c20c81/20
I want to pivot that table and have each location for c and q.
So the table would have the following columns:
PN, 1 c, 1q, 2c, 2q....
So for example PN A1 would read:
PN 1 c, 1 q, 2 c, 2 q, 3 c, 3 q, 4 c, 4 q
A1 1 1 1 2 0 0 1 3
Subject
Written By
Posted
mySQL pivot tables following UNION join
July 26, 2018 09:34AM
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.