D
dhstein
This is a database design question. I need to provide an analogy of what I'm
trying to do. Imagine there are 10 types of products - call them A - J.
Products A - F have a characteristic that is further defined in another table
- call that table T and that field Q. Products G - J don't have that. I
want to link that field in the product table to the corresponding field in
table T so I can query all products where Q = 22. But since some of the
products don't use the field - this won't work. I could also create separate
tables - one table for products A - F and one for the others. But there are
some queries that will need to run against the combined tables. So I suppose
those 2 tables need some common field (like product code) to relate them. As
I'm writing this I think I'm getting close to what I need. But if you can
add any clarity or advice here that would be appreciated. That assumes that
I was clear enough - if not - my apologies.
trying to do. Imagine there are 10 types of products - call them A - J.
Products A - F have a characteristic that is further defined in another table
- call that table T and that field Q. Products G - J don't have that. I
want to link that field in the product table to the corresponding field in
table T so I can query all products where Q = 22. But since some of the
products don't use the field - this won't work. I could also create separate
tables - one table for products A - F and one for the others. But there are
some queries that will need to run against the combined tables. So I suppose
those 2 tables need some common field (like product code) to relate them. As
I'm writing this I think I'm getting close to what I need. But if you can
add any clarity or advice here that would be appreciated. That assumes that
I was clear enough - if not - my apologies.