Reply to Re: How to normalize these relationships?

Your name:

Reply:


Posted by othellomy on 03/06/07 08:58

On Mar 4, 11:00 am, bbcr...@gmail.com wrote:
> I have three tables with a relationship I've never worked with
> before. Can anyone suggest/comment on the best way to create a third
> normal form relationship between these tables?
>
> The tables basically are:
>
> TRAIN (TRAIN_ID and 15 columns about train specs, etc)
> TRUCK (TRUCK_ID and 12 columns about truck specs, etc)
> TRANSPORTATION_ITEM
> This table has, among others, two columns, TRUCK_ID and TRAIN_ID. If
> the truck column is used there can be no data in the train column and
> vice versa.
>
> This relationship seems denormalized to me, but I don't remember how
> to normalize it. Does anyone know the correct name for this kind of
> relationship?
>
> thanks!

You can have two extra columns. For transportation_item table one
column will be source with values 'truck' or 'train'. The other column
is id with values for truck_id or train_id.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация