Solved

database sample

Posted on 2011-03-10
4
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
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 77

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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

635 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