Hi everyone,
I have a database with X items, and each of them can have one or more of 20+ properties.
How I currently make this work is I have a huge table with each of the properties having it's own column, and a boolean to determine does the property apply to an item. Something like this:
---------------------------------------------------------------------
ITEM PROPERTY 1 | PROPERTY 2 | PROPERTY 3 | etc.
some item 0 1 0
another one 1 1 0
one more 1 0 1
---------------------------------------------------------------------
Can having properties in a separate table and using many to many relationship
make this any more practical? And how to do it? Or any other solution?
If anyone knows this please give step by step info for the sake of all of us
database noobs who get stuck at this turning point where you realize database design
is WAY more than making a table and choosing column types.
Thanks:)