•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 374,006 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,847 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser:
Views: 503 | Replies: 7
![]() |
•
•
Join Date: Mar 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
I have a DB to setup using products:
This is what I have and am seeking input and design for Inventory. I want to separate inventory by product properties (i.e. Sizes [Small - Medium - Large - X-large ] Color [White - Black - Green] )
So, count by color, by color & size (etc.)
Products
- ProductID
- Name
- Description
- CategoryID
ProductPrice
-PriceID
-ProductID
-Price
ProductProperty
-ID
-Name
-Desc
-Order
PropertyVariation
-ID
-PropertyID
-Name
-Value
I am thinking about breaking out inventory into 2 tables:
Inventory
-ID
-ProductID
-Quantity
-Current Quantity
-Order
PropertyInventory
-ID
-InventoryID
-PropertyID
-Quantity
-CurrentQuantity
Does this sound about right or should it be simplified?
Thanks for any input.
J
This is what I have and am seeking input and design for Inventory. I want to separate inventory by product properties (i.e. Sizes [Small - Medium - Large - X-large ] Color [White - Black - Green] )
So, count by color, by color & size (etc.)
Products
- ProductID
- Name
- Description
- CategoryID
ProductPrice
-PriceID
-ProductID
-Price
ProductProperty
-ID
-Name
-Desc
-Order
PropertyVariation
-ID
-PropertyID
-Name
-Value
I am thinking about breaking out inventory into 2 tables:
Inventory
-ID
-ProductID
-Quantity
-Current Quantity
-Order
PropertyInventory
-ID
-InventoryID
-PropertyID
-Quantity
-CurrentQuantity
Does this sound about right or should it be simplified?
Thanks for any input.
J
•
•
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 174
Reputation:
Rep Power: 1
Solved Threads: 20
Your tables suggest you may need to do some more work on RDBM design. You have features and attributes of Products spread throughout several tables, when I believe they could all be in one table, with the appropriate fields. You want to try and collect all information about a thing or event in one table. In your case, so far I've only seen mention of 'Products'. What else are you going to put in your database, if anything?
Try and get a good book on relational database design. Some good ones that I use are 'Database Design for Mere Mortals' by Michael Hernandez, 'SQL Queries for Mere Mortals' by same author, and 'MySQL' by Paul Dubois.
Try and get a good book on relational database design. Some good ones that I use are 'Database Design for Mere Mortals' by Michael Hernandez, 'SQL Queries for Mere Mortals' by same author, and 'MySQL' by Paul Dubois.
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
"Others make web sites. We make web sites work!"
•
•
Join Date: Mar 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
I think that the tables are spread to thin. I need pair them down abit, I just want product inventory system that tells you how many red t-shirts in xlarge without have a column (red shirt - xl).
Something for quick look ups - shirts then more tables (I'm thinking) once a user drives down the search.
Something for quick look ups - shirts then more tables (I'm thinking) once a user drives down the search.
•
•
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 174
Reputation:
Rep Power: 1
Solved Threads: 20
•
•
•
•
I think that the tables are spread to thin. I need pair them down abit, I just want product inventory system that tells you how many red t-shirts in xlarge without have a column (red shirt - xl).
Something for quick look ups - shirts then more tables (I'm thinking) once a user drives down the search.
If all you want to know is how many of X you have, then why not just use a spreadsheet? Or is this supposed to be a web-based application?
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
"Others make web sites. We make web sites work!"
•
•
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 174
Reputation:
Rep Power: 1
Solved Threads: 20
You already have the basic information you need to start the database: item name, color, size, cost, price, etc. So make those fields in a Products table and start populating them. Include an ID field to tie in with future tables (suppliers, customers, invoices, etc.)
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
"Others make web sites. We make web sites work!"
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
Similar Threads
- Windows XP Product Key (Windows NT / 2000 / XP / 2003)
- trial version need product key??? (Windows NT / 2000 / XP / 2003)
- win98: had no product key now can't uninstall (Windows 9x / Me)
Other Threads in the Database Design Forum
- Previous Thread: Car Hire
- Next Thread: Database Design Help and Suggestions


Linear Mode