|
-
Feb 19th, 2009, 12:03 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Database setup question
I am working well (as far as I know) on using foreign keys to create a relational database for products to be sold. A catalog, basically.
My question is related to cars.
My final cars table has a make_id, model_id, list_price, ...
However, I would also like to sell from accessories like spare batteries, cleaning solutions, etc.
Should I make a separate table for accessories?! Or should I somehow incorporate every item that I potentially sell into one table?
It confuses me here a bit, because obviously a battery wouldn't have a make_id, for instance.
Thanks for the tips.
I use mysql.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|