Solved

database sample

Posted on 2011-03-10
4
286 Views
Last Modified: 2012-05-11
Hi,

Please provide a sample database to deal with Raw Materials inventory and Bill Of Material.

Thanks

Ayha
0
Comment
Question by:ayha1999
  • 2
  • 2
4 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35098296
0
 
LVL 7

Author Comment

by:ayha1999
ID: 35111589
hi slightwv,

could u pls. clear some doubts?

I have a raw material named aluminium steel for eg. the thickness is 5mm lenght and width is 200cm x 200cm. How can I create stock table to store the quanity of al. sheets? If I recieve 2 sheets from a supplier, how can update the stock quantity in the stock table? another raw material's unit is diameter etc.

pls. hlep

thanks
0
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 250 total points
ID: 35111712
I'm not in an organization that has this type of data model so I can only speak to design theory.

The final design will be based on the requirements of the system accessing the data.

For example:  If you ever have to as a question form the database "How many inventory items do I stock made form aluminum?"

It might make sense to have a base 'material' table like:
material_content_id and material_content_desc
1, Steel
2, Aluminum
...

Then maybe another lookup, material_type:
mat_type_id, mat_type_desc
1, flat
2, tube
...

BUT, what if your system needs to track the different percentages of the base materials in your stock:  90% aluminum-10% tin, 80-20, 60-20-10-10, etc...

The design is a LOT different.

I always start by making a list of what I know:  Materials, application requirements, etc...

Then you just go through the 'Rules of Normalization':
http://en.wikipedia.org/wiki/Database_normalization

After you start getting comfortable with this process, you can actually start predicting questions that will 'eventually' be asked of the database and design form them ahead of time.

Management, Developers and/or System Analysts almost ALWAYS come to you with:  We just found out.  We need to extract 'X' from the database.  Can you handle that?

0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 35190692
thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now