Re: Multiway associations

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Multiway associations
Дата
Msg-id 179A85A6-4EF4-11D8-A56D-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на Multiway associations  (Russell Shaw <rjshaw@iprimus.com.au>)
Ответы Re: Multiway associations  (Russell Shaw <rjshaw@iprimus.com.au>)
Список pgsql-novice
Hi Russel

On Jan 25, 2004, at 12:46 PM, Russell Shaw wrote:
> I have a list of parts, each of which is sold by multiple
> vendors. I also have a list of vendors, each of which sell
> multiple parts.
>
> How should i arrange the tables for this that doesn't involve
> having lots of empty fields "just in case" ?

One common way to do this is to have three tables: one suppliers, one
parts, and one suppliers-parts referencing suppliers and parts.

Does that help?

Michael Glaesemann
grzm myrealbox com


В списке pgsql-novice по дате отправления:

Предыдущее
От: Russell Shaw
Дата:
Сообщение: Multiway associations
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Problem with pg_hba.conf file in Postgres 7.3