Link many attributes in one table to one attribute in another??

From: "Christian Anton" <christiananton(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Link many attributes in one table to one attribute in another??
Date: 2001-06-28 04:44:34
Message-ID: 3b3ab3aa_1@newsa.ev1.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello all,

I am fairly new at db design, I have built a few simple in the past and have
never dealt with this type of problem before, any help would be appreciated.

I have three attributes in one table that should reference one, and only
one, attribute in another table. Here's an analogy of the problem:

I have a table with a list of marbles, each marble has three colors in it
(color1, color2, color3) and a serial number. In another table I have eight
colors to choose from but the list of colors grows regularly.
How do I associate a marble with three colors from the color table (a marble
may have three red sides or red-yellow-blue)?

Thanks,
Christian

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Luis Sousa 2001-06-28 10:13:41 Re: Problems using a rule with the WHERE clause
Previous Message Hugh Mandeville 2001-06-28 02:34:27 Re: Re: Re: binary data