If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > just some help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-20-06, 12:46
wesDotNet06 wesDotNet06 is offline
Registered User
 
Join Date: Mar 2006
Posts: 6
just some help

i have to design a db for a hardware store for a project. was wondering, for the inventory. should i put everything in one table, for example all hammers, all screw drivers wrentches, etc. or should i split them up into tables?
Reply With Quote
  #2 (permalink)  
Old 03-20-06, 13:20
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
That depends on what you're trying to track. You can usually store all your items in one table for a basic inventory database. There are a few hundred thousand variations that may require additional tables...
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 03-20-06, 15:10
wesDotNet06 wesDotNet06 is offline
Registered User
 
Join Date: Mar 2006
Posts: 6
so i can basically store everything in there? so my table will look somewhat like this?

Inventory:
itemID:
itemDescriptionhammer,screw driver, etc)
itemBrand:
itemSize:
itemType:
quantity:

ok with this design wont there be a ton a repeats for the desciptions. because if the hardware store has 15 different types of hammers and 30 different types of screw driver then there will be 15 and 30 of the same itemDescription names. is that ok. that why i was thinkng of creating a table for each one.
Reply With Quote
  #4 (permalink)  
Old 03-20-06, 16:48
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
the potetnial problem you have is how you consider products. potetnailly you are duplicating the item description for different sizes. that may not be a major issue in hardware but it could be (say for example saftey boots) - the descriptuion is the same (eg "Clodhoppers in brown", but the customer is just as interested in size

also does the brand matter, are customers buying generic woodscrews or say GKN woodscrews.

how do you pan to cater for equivalance (ie product x can be substitued by product y

how do you plan to cater for the differning measurements of items - some products will be sold by length, some by area, some by volume some by another measure (eg shoe / clothing sizes) how do you want to handle size ranges eg some clothing may be 30-36".

having analysed the business requirement then you can move on to table design.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #5 (permalink)  
Old 03-20-06, 16:52
ByteRyder52 ByteRyder52 is offline
Registered User
 
Join Date: Feb 2005
Location: Colorado Springs
Posts: 222
I would suggest looking at the ready-made models at http://www.databaseanswers.org/index.htm rather than reinventing the wheel. There was also a generic retail/inventory model available from IBM in Boulder, but I can't find the link. It is somewhere in one of the threads on this discussion group.
Reply With Quote
  #6 (permalink)  
Old 03-20-06, 17:41
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,246
Nice idea, gernerally I'd agree whole heartedly (ther is little point re-inventing - but if its for a piece of academic coursework then I'd genuinely reccommend that the start from scratch is a good idea. by all means look at whats out there, but you need to understand and be able to explain why something is modelled in a particular manner.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On