I'll try to explain you the problem of mine. I'm searching for advice because I'm in impasse. I have this database for an online store (it doesn't sell anything, it's just to show people owner's products).
I have two (they are more, but for this situation we'll consider just two of them) table. In the first:
products name | gender | id_product | etc..
john male 23
In the second:
id_product | man_56 | man_54 | man_52 | man_50 | etc...
23 0 1 0 1
id_product
is the same as the first table. It's used to link the two table. Also 1=available, 0=not available
).
Screenshot:
Now I don't know how to select/print only the column where records are 1 and not 0. Do I need to specify every column's name of the table?