View Single Post
Old 10-28-2011, 08:19 PM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
allotting Single Row for the Single Brand , which should include Quantity,pid and brand name in such a way that it can be matched with "products" table
As you can see, this is what my OrderItems table is for. *BUT* you should *NEVER* put both pid and brand name into the OrderItems table. *ONLY* use the pid, as only it is guaranteed unique.

This is all part of the basic process of NORMALIZATION.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote