MySQL Forums
Forum List  »  Newbie

Re: Products grid
Posted by: Peter Brawley
Date: October 18, 2016 09:36AM

Read about normalisation. It's a standard relational decomposition, eg ...

item(id, name, ...) eg (1, 'shirt'), 2,'pants')

gender(enum(m,f,uni)

size( id, sizenum, gender)

manufacturer(id, name, ...)

...etc ..., then ...

products( pid PK, itemID, gender, sizeid, manufacturer, wholesale_price, retail_price, ...)

orders( ordid, date, customerID, ...)

order_items( oid, ordid, pid, quantity, ...)

The main thing is to pursue it systematically, eg as described at http://www.artfulsoftware.com/dbdesignbasics.html.

You may find a starter model at http://www.databaseanswers.org/data_models/

Options: ReplyQuote


Subject
Written By
Posted
October 17, 2016 09:17PM
October 17, 2016 11:00PM
Re: Products grid
October 18, 2016 09:36AM
October 21, 2016 07:58PM


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.