kmb
Registered User.
- Local time
- Today, 13:31
- Joined
- Oct 1, 2009
- Messages
- 26
Hi all,
I am sending this out to find out the best practice when it comes to fields design. I was under the impression that the best way to have the most upper level table was to have fields populating it with the primary keys from other tables.
Let me be more specific: I have an organization table that is joined to other tables like contacts, pix, category and subcategory. The problem arises when I have two fields for categories IDs and two for their respective subcategories IDs in the organization table, where they wouldn't be the same in an individual record. The values that are in the two categories fields should come from the categories table and the same for the subcategories.
When I go to query for a specific category, how do I use the category table to link the name associated with the ID for that specific record. Remember, there needs to be two of each and when I query, I use the OR criterion. If this is not clear enough let me know, and I can be more specific or send a sample dB.
Thanks,
kMb
I am sending this out to find out the best practice when it comes to fields design. I was under the impression that the best way to have the most upper level table was to have fields populating it with the primary keys from other tables.
Let me be more specific: I have an organization table that is joined to other tables like contacts, pix, category and subcategory. The problem arises when I have two fields for categories IDs and two for their respective subcategories IDs in the organization table, where they wouldn't be the same in an individual record. The values that are in the two categories fields should come from the categories table and the same for the subcategories.
When I go to query for a specific category, how do I use the category table to link the name associated with the ID for that specific record. Remember, there needs to be two of each and when I query, I use the OR criterion. If this is not clear enough let me know, and I can be more specific or send a sample dB.
Thanks,
kMb