Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdLLy-0007cX-VP for pgsql-sql@arkaria.postgresql.org; Tue, 27 Nov 2012 13:37:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TdLLx-00071Q-As for pgsql-sql@arkaria.postgresql.org; Tue, 27 Nov 2012 13:37:33 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdHxM-0000k9-Ef for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 09:59:56 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TdHxL-000453-AI for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 09:59:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TdHxK-0004SG-1Z for pgsql-sql@postgresql.org; Tue, 27 Nov 2012 01:59:54 -0800 Date: Tue, 27 Nov 2012 01:59:54 -0800 (PST) From: ssylla To: pgsql-sql@postgresql.org Message-ID: <1354010394000-5733692.post@n5.nabble.com> Subject: output query on many to many relationship into several columns MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.1 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Dear list, assuming I have the following n:n relationship: t1: t2: intermediary table: t3 How can I create an output like this: -- View this message in context: http://postgresql.1045698.n5.nabble.com/output-query-on-many-to-many-relationship-into-several-columns-tp5733692.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql