Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: vehicle to autoparts relationships

Re: vehicle to autoparts relationships

From: Neo <neo55592_at_hotmail.com>
Date: 27 Nov 2006 21:32:25 -0800
Message-ID: <1164691945.021324.198860@n67g2000cwd.googlegroups.com>


> I apparently screwed up by mentioning parts of different "parts" of the vehicle. I meant different "sections" of the vehicle, like the transmission, engine, exhaust system, etc.

Could one think of sections as parts also. If so, you might consolidate the hierarchy in just two core tables: T_Part and T_Par_Child

> which is easy to manage via an XRef table.

What is a XRef table?

> My concern is associating the part to the different vehicle sections. In the example below, the starter1 (or 2 or 3, etc) should relate to the engine. Thus, do I have to identify this in a table, or manage it strictly via the program?

I would opt to store the relationships in the db.

>The same applies to the transmission section, to which the "gear1" part is related. How do I say that the current user selection pertains to engines, transmissions, etc, and only show related parts, or even limit entry to appropriate parts???

Search for part (gear1) in T_Par_Child's child column. It should be in two rows, where the Parent part is manual_trans and auto_trans. After selecting one the trans (ie auto), find all rows with it in Par col, and it should return child parts (ie gear1, gear2). Received on Mon Nov 27 2006 - 23:32:25 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US