Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id DEEEE6329C7 for ; Mon, 28 Jun 2010 10:51:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83692-07 for ; Mon, 28 Jun 2010 13:51:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from jupiter.marktest.pt (delta.marktest.pt [80.251.174.116]) by mail.postgresql.org (Postfix) with ESMTP id 97C2F63278C for ; Mon, 28 Jun 2010 10:51:22 -0300 (ADT) Received: from Proteu (proteu.marktest.pt [10.61.90.54]) by jupiter.marktest.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id NR67F1VT; Mon, 28 Jun 2010 14:51:19 +0100 Message-ID: From: "Oliveiros d'Azevedo Cristina" To: "ced" Cc: References: <4C28736E.8030409@dreamgnu.com> <72B95859322043DF995F2012194B4754@marktestcr.marktest.pt> <4C288765.8080604@dreamgnu.com> <10B2957382DB4803B59D6ECB7FBCA945@marktestcr.marktest.pt> <4C28A6CF.8040304@dreamgnu.com> Subject: Re: Outer join construction step :strange results Date: Mon, 28 Jun 2010 14:51:17 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.229 tagged_above=-5 required=5 tests=BAYES_50=0.8, STOX_REPLY_TYPE=0.439, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: * X-Archive-Number: 201006/115 X-Sequence-Number: 34306 >> Can you specify a little more how you represent T1 item sets with this >> data model? > (T0.id,T0.fk_T1)=(1,234),(1,235),(1,236) > 234,235,236 all T1 items and 1 the set of them >> What exactly represents one row from table T0? A pair (id, fk_T1) ? A >> set with just one element? > one item in the set. That's what I thought in the first place, actually. But then T0.id cannot be a primary key, because IIRC the primary key integrity constraint doesn't allow repeating of values. And on the example you 've just posted you have three ID = 1 Ain't I Right? Also, please, do not forget to CC to list, it's always possible that someone with more knowledge than me might help you faster Best, Oliveiros