MySQL Forums
Forum List  »  Newbie

Re: Newbie Normalization Question
Posted by: Peter Brawley
Date: November 29, 2011 05:18PM

"Guys"!?

> So would each random question gets its own Table every time a business adds a new question ...

No. A new row in a questions table.

> ... each manufacturer will only carry one of each product (product id)

More often, products are made by multiple manufacturers and sold by multiple vendors, so usually you would need something like ...

manufacturers(id, name, ...)
products(id, name,...)
manufacturers_products(id, manuID references manufacterers(id),prodID references products(id), ...)

and a similar many:many relationship between vendors and products.

PB



Edited 2 time(s). Last edit at 11/30/2011 03:42PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
November 29, 2011 11:48AM
November 29, 2011 04:52PM
Re: Newbie Normalization Question
November 29, 2011 05:18PM
November 29, 2011 11:20PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.