473,394 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Table Design

Hi Group,

I need to come up with a sound Database design, that will allow me to
"Hiarchialy" save and extract data. The end result will someday be a Bill Of
Materials.

The basic idea is this:

Lets say we create a Widget:
The Widget is comprised of 3 items;
1) a Display screen
2) a keyboard
3) a power supply

the Display Screen, keyboard and power supllies are made up of different
components also.

So the data should look something like this:

WIDGET
- DisplayScreen
-DisplayScreen Casing
-plastic
-screws
-Paint
-Various electronic components
-Wires
- Keyboard
-keys
-wires
-switches
- PowerSupply
-Transformer
-Diodes
-capacitors

So My question is; What would be the best way to store this inside a
Database. Should it all come from the same table? If so, how will I keep
track of these parts(ie:plastic belongs to DisplayScreenCasing which belongs
to displayScreen which belongs to Widget.)? I've come up with a few
solutions, but none allow me to track the hierarchy efficiently without
writing hundreds of lines of code.

What i would like to do is have one table hold all the parts, and have ONE
lookup table which would hold the references to each part.

Any insight, ideas, or directions would be greatly appreciated.

Best regards, and happy holiday season,

Marco
Nov 15 '05 #1
1 1704
The simplest way I can see is to have a parts table and a where-used
table.

PartID Description
1 DisplayScreen
2 DisplayScreenCasing
3 Plastic
4 Screws
5 Paint
6 Keyboard
7 Plastic

Where-Used
PartID AssemplyID
2 1
3 2
4 2
5 2
7 6

On Mon, 22 Dec 2003 17:01:00 -0500, "Marco Martin"
<ma**********@sympatico.ca> wrote:
Hi Group,

I need to come up with a sound Database design, that will allow me to
"Hiarchialy" save and extract data. The end result will someday be a Bill Of
Materials.

The basic idea is this:

Lets say we create a Widget:
The Widget is comprised of 3 items;
1) a Display screen
2) a keyboard
3) a power supply

the Display Screen, keyboard and power supllies are made up of different
components also.

So the data should look something like this:

WIDGET
- DisplayScreen
-DisplayScreen Casing
-plastic
-screws
-Paint
-Various electronic components
-Wires
- Keyboard
-keys
-wires
-switches
- PowerSupply
-Transformer
-Diodes
-capacitors

So My question is; What would be the best way to store this inside a
Database. Should it all come from the same table? If so, how will I keep
track of these parts(ie:plastic belongs to DisplayScreenCasing which belongs
to displayScreen which belongs to Widget.)? I've come up with a few
solutions, but none allow me to track the hierarchy efficiently without
writing hundreds of lines of code.

What i would like to do is have one table hold all the parts, and have ONE
lookup table which would hold the references to each part.

Any insight, ideas, or directions would be greatly appreciated.

Best regards, and happy holiday season,

Marco


Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael Lauzon | last post by:
This is not for a class, I have a group on SourceForge, this is what one of the Developers is asking; the more advanced you can make it right off all the better!: Can someone please create...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
0
by: 2trax | last post by:
Hi all, I am trying to mimic the unix security model (users and groups) in a web app. I have thought of two ways of implementing this, but am unsure which would be better. The first design...
15
by: kimi | last post by:
I have just started working on a project that is partially complete. It is an application that is using access to store test results. The test results are being stored in two Access 2000 databases....
6
by: MLH | last post by:
If I open an A97 table, resort its key-field to descending order and attempt to close the table, A97 asks me if I wish to save the table DESIGN? Now really, I don't think the table design is being...
4
by: Nathan Sokalski | last post by:
When editing an ASP Table, Visual Studio does not allow me to edit it in Design View. This makes it harder to add elements, because I must add every element either by using Design View to create...
7
by: david | last post by:
I have asked this question before. But it does not work for me. Given radion buttons in the web form design page. What I did is described as follows. A panel control is dragged into the design...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
54
by: csolomon | last post by:
Hello: I was wondering if I could get some input on how to address a design issue, involving my composite table. I have one portion of my project complete. The following forms and reports I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.