Solved

database sample

Posted on 2011-03-10
4
276 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)
Comment Utility
0
 
LVL 7

Author Comment

by:ayha1999
Comment Utility
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
Comment Utility
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
Comment Utility
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

762 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

13 Experts available now in Live!

Get 1:1 Help Now