My app reads txt files created by the user, and containing the query text, description, input and output, type of query etc. So I can't just make it easier getting data from the DB and elaborate them in java (which I'm more advanced in).
I have a spare_parts table which is an import from an excel file through CSV import in HEIDI SQL.
It's made this way:
+-------------+---------+---------+---------+---------+---------+ | PART NUMBER | MODEL X | MODEL Y | MODEL Z | MODEL 1 | MODEL 2 | +-------------+---------+---------+---------+---------+---------+ | PART A | 0 | 0 | 1 | 0 | 0 | | PART B | 1 | 0 | 0 | 1 | 0 | | PART C | 1 | 1 | 1 | 0 | 0 | | PART D | 0 | 0 | 0 | 1 | 1 | +-------------+---------+---------+---------+---------+---------+
I need to list the models where a certain part is used, for instance: PART C is used to build model X, Y and Z.
I don't want to list all the columns manually, because they are a lot and because they change often.
What do you suggest?