Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5SCY8a91986 for ; Thu, 28 Jun 2001 08:34:08 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5S522a65794 for ; Thu, 28 Jun 2001 01:02:02 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5S4ckK35035 for pgsql-sql@postgresql.org; Thu, 28 Jun 2001 00:38:46 -0400 (EDT) (envelope-from news) From: "Christian Anton" X-Newsgroups: comp.databases.postgresql.sql Subject: Link many attributes in one table to one attribute in another?? Date: Wed, 27 Jun 2001 23:44:34 -0500 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <3b3ab3aa_1@newsa.ev1.net> To: pgsql-sql@postgresql.org X-Archive-Number: 200106/444 X-Sequence-Number: 3742 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