Essentially I have a table in my database called Table1
with the following data:
The table has a ProductID that repeats because the values of AssignedColour
, ColourFinding
and ColourPower
vary.
I would like to present all ProductID
data in one single row, meaning if there is more than one AssignedColour
, ColourFinding
and ColourPower
listed, it will contain a number at the end.
The final result I of the SELECT query should look like the following:
The number of columns presented horizontally is based on the number of AssignedColour per ProductID
Is something like this possible to accomplish in a mySQL SELECT Query?