I had a table in mysql, but at some point it grew too much and I needed to change it to coordinates only (it was half empty anyway).
Imagine following:
----X --Y --Z --A-
A --1 --0 --0 --0
B --0 --1 --0 --0
D --0 --1 --1 --0
X --0 --0 --0 --1
Then I changed it just to table of coordinates for 1s (true):
main - sub
A -- X
B -- Y
D -- Y
D -- Z
X -- A
In reality table is around 300x500.
Now, the coordinates can be added freely and they can appear in columns and rows, so I do not have reference list. Can anyone suggest how to print a table out of it? I am thinking already for a longer while how to approach this.