Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 48F8C2E3469 for ; Tue, 11 Dec 2007 14:21:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 11900-04-5 for ; Tue, 11 Dec 2007 14:21:09 -0400 (AST) Received: from ns2.instrumentalyst.com (blk-222-55-203.eastlink.ca [24.222.55.203]) by postgresql.org (Postfix) with ESMTP id 91E4B2E347C for ; Tue, 11 Dec 2007 14:21:09 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ns2.instrumentalyst.com (Postfix) with ESMTP id 42F7012E for ; Tue, 11 Dec 2007 14:20:23 -0400 (AST) X-Virus-Scanned: amavisd-new at instrumentalyst.com Received: from ns2.instrumentalyst.com ([127.0.0.1]) by localhost (ns2.instrumentalyst.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k+W5u-ZFjvkU for ; Tue, 11 Dec 2007 14:20:10 -0400 (AST) Received: from Arjuna.local (rrcs-24-129-176-158.se.biz.rr.com [24.129.176.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ns2.instrumentalyst.com (Postfix) with ESMTP id D3E8212C for ; Tue, 11 Dec 2007 14:20:09 -0400 (AST) Message-ID: <475ED504.7080006@productivitymedia.com> Date: Tue, 11 Dec 2007 13:20:52 -0500 From: PostgreSQL Admin User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Foreign Key for multi PK or design question References: <863ECFDF04C8804ABDF3559D87F157C638E5D9@MAGPTCPEXC02.na.mag-ias.net> In-Reply-To: <863ECFDF04C8804ABDF3559D87F157C638E5D9@MAGPTCPEXC02.na.mag-ias.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.566 tagged_above=0 required=5 tests=BAYES_40=-0.185, FH_HOST_ALMOST_IP=1.751 X-Spam-Level: * X-Archive-Number: 200712/51 X-Sequence-Number: 29743 I have a table in which people will have a number of questions to answer. I want those pk to be placed in my user table. So if a user answers three question I want those 3 pk's in the user table (fk). What should I be doing? Thanks in advance, J