Hello
I am trying to create a visual summary of the data I have in MySQL. So Table A has id and name, for example:
1 Saw
2 Spanner
3 Hammer
etc
Table B has id, section and itemid, where the itemid field is an array of numbers which relate to id in Table A. So for example:
1 Indoor 1,2,3
2 Outdoor 1,2,3
3 Kitchen 1,3
etc
I want to make a grid showing each item, and whether or not it is in the array for each section, like this:
Item / Indoor / Outdoor / Kitchen
Saw yes yes yes
Spanner yes yes no
Hammer yes yes yes
Completely stumped so any clues as to how to query that array, or where to look to help me understand what I need to think about would be much appreciated.
Thanks