any idea how to make this happen in MySQL:
Have Data:
Item, class, x, y, z, A, B, C
1, new, 1, 0, 0, 1, 1, 0
2, red, 1, 1, 0, 0, 1, 1
3, new, 0, 0, 1, 1, 0, 1
(Data is also be in form 1, new, X, AB or 2, red, XY, BC if that is an easier point of departure…)
Need:
1, new, X, A
1, new, X, B
2, red, X, B
2, red, X, C
2, red, Y, B
2, red, Y, C
3, new, Z, A
3, new, Z, C
Any help would be awesomely appreciated. Thanks.
For few “xyzABC…” columns you can use this: