Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id B44D36329C7 for ; Mon, 28 Jun 2010 10:47:14 -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-02 for ; Mon, 28 Jun 2010 13:47:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from courils.dreamgnu.com (hosting.dreamgnu.com [213.203.218.158]) by mail.postgresql.org (Postfix) with ESMTP id 88F7A63278C for ; Mon, 28 Jun 2010 10:47:01 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by courils.dreamgnu.com (Postfix) with ESMTP id C44CD1C62B9 for ; Mon, 28 Jun 2010 15:46:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hosting.dreamgnu.com Received: from courils.dreamgnu.com ([127.0.0.1]) by localhost (hosting.dreamgnu.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0rMZMWwG7+9U for ; Mon, 28 Jun 2010 15:46:56 +0200 (CEST) Received: from [192.168.4.20] (p548DA0DA.dip.t-dialin.net [84.141.160.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by courils.dreamgnu.com (Postfix) with ESMTP id 416F91C62BB for ; Mon, 28 Jun 2010 15:46:56 +0200 (CEST) Message-ID: <4C28A7D0.4060508@dreamgnu.com> Date: Mon, 28 Jun 2010 15:46:56 +0200 From: ced User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Re: Outer join construction step :strange results References: <4C28736E.8030409@dreamgnu.com> <72B95859322043DF995F2012194B4754@marktestcr.marktest.pt> <4C288765.8080604@dreamgnu.com> <10B2957382DB4803B59D6ECB7FBCA945@marktestcr.marktest.pt> In-Reply-To: <10B2957382DB4803B59D6ECB7FBCA945@marktestcr.marktest.pt> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-5 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/114 X-Sequence-Number: 34305 Oliveiros d'Azevedo Cristina wrote: > > >> Oliveiros d'Azevedo Cristina wrote: >>> Howdy, Cedric . >>> >>> Before analysing this problem of yours further, I 'd like you to >>> kindly clarify me some points, please >>> >>> >>> >>>> >>>> I have table following tables T0,T1,T2,T3, T1T2 >>>> with >>>> -T0(id, fk_T1) >>>> -T1(id ) >>>> -T2(id, fk_T3) >>>> -T1T2(fk_T1,fk_T2) >>>> -T3 (id) >>>> >>>> The table T0 represents sets of T1 items. >>>> The table T1 represents items. >>>> The table T3 represents property types. >>>> The table T2 represents represents property values of a specific type. >>>> >>> >>> >>> T0.id is not a primary key, is it? >> all columns with id are Primary keys >> all columns with fk_T1 are foreign keys > > > 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. > > Best, > Oliveiros >