Re: vehicle to autoparts relationships
From: Neo <neo55592_at_hotmail.com>
Date: 27 Nov 2006 21:32:25 -0800
Message-ID: <1164691945.021324.198860_at_n67g2000cwd.googlegroups.com>
Date: 27 Nov 2006 21:32:25 -0800
Message-ID: <1164691945.021324.198860_at_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?
I would opt to store the relationships in the db.
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 Tue Nov 28 2006 - 06:32:25 CET