Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 94E919FBD83 for ; Tue, 5 Jun 2007 11:57:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 79866-08 for ; Tue, 5 Jun 2007 11:57:09 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by postgresql.org (Postfix) with ESMTP id 9937F9FBD31 for ; Tue, 5 Jun 2007 11:57:15 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so400122ana for ; Tue, 05 Jun 2007 07:57:14 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MgwIkOYen3cLJxfDHKGZJUy4H+52qBM/3bZh2Wn5nnWw4RJpGZnPxhb1Oen0MMtJO0tUkOD5pRz3qqKd68/hFxEciR6s0htsJj00m/jkSq7UtsNGihG2dniBIyXUJA1fDdjWLScAzp1GpeuEE0eCcOutbWAL7luLWDIQNT0kiPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=pJdlETyWndOxOoH33yfzFo+R6HiZbxwayN6Hx7PkTvcS1MRZh5vlt/SK0JAh+CTW0fzwyxU+qBcDYo0mwCqFiFEj3UrPsgJqRkV48QpFeHkHBmcw5c3AD4rAWtxpU0NCQEGbK3hPpuVQZaK7FYztDPPLTZSCDgzXDYm4eh6rAC4= Received: by 10.100.108.11 with SMTP id g11mr3306141anc.1181055433662; Tue, 05 Jun 2007 07:57:13 -0700 (PDT) Received: by 10.100.42.1 with HTTP; Tue, 5 Jun 2007 07:57:13 -0700 (PDT) Message-ID: <1c23c8e70706050757r212f0369oaee3909598ce7097@mail.gmail.com> Date: Tue, 5 Jun 2007 17:57:13 +0300 From: "Loredana Curugiu" To: "Oliveiros Cristina" , pgsql-novice@postgresql.org, pgsql-sql@postgresql.org Subject: Re: [SQL] JOIN In-Reply-To: <010001c7a781$300481d0$ec5a3d0a@marktestcr.marktest.pt> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13497_3247458.1181055433532" References: <1c23c8e70706050111i5ba672d6j78bd9afa4b786616@mail.gmail.com> <1c23c8e70706050426y12d567ban70ffdafb75808e0e@mail.gmail.com> <1c23c8e70706050708h6c5b708dpc2f53ff76a73740c@mail.gmail.com> <1c23c8e70706050715y45688e12n90fcf8cecd84b251@mail.gmail.com> <010001c7a781$300481d0$ec5a3d0a@marktestcr.marktest.pt> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/37 X-Sequence-Number: 18935 ------=_Part_13497_3247458.1181055433532 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/5/07, Oliveiros Cristina wrote: > > Hello again, Loredana. > > > Additional information required :-) > > imagine the following situation > > 1| LIA | recv1 | date1 | (date1,date2) > 2|LIA | recv1 |date 1 | (date2,date3) > 3| LIA | recv1 | date1 | (date1,date3) > > > Should this yield 6? Or 4? > date 1 is not on the second dates column, but it is on the remaining two > if the first column is count then the sum(count) should be 4. Loredana ------=_Part_13497_3247458.1181055433532 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 6/5/07, Oliveiros Cristina <oliveiros.cristina@marktest.pt> wrote:
Hello again, Loredana.
 
 
Additional information required :-)
 
imagine the following situation
 
1| LIA | recv1 | date1 | (date1,date2)
2|LIA | recv1 |date 1 | (date2,date3)
3| LIA | recv1 | date1 | (date1,date3)
 
 
Should this yield 6? Or 4?
date 1 is not on the second dates column, but it is on the remaining two

if the first column is count then the sum(count) should be 4.


Loredana
------=_Part_13497_3247458.1181055433532--