From: Michael Landin Hostbaek <mich@the-lab.org>
To: news.gmane.org <nis@superlativ.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Where clause
Date: Wed, 27 Jun 2007 10:12:59 +0200
Message-ID: <20070627081259.GR50866@mich2.itxmarket.com> (raw)
In-Reply-To: <f5ravm$37c$1@sea.gmane.org>
References: <20070626082405.GA67974@mich2.itxmarket.com>
<f5ravm$37c$1@sea.gmane.org>
news.gmane.org (nis) writes:
> SELECT * FROM
> (
> select cid,count(distinct contactid) from tracking where click =
> true group by cid
> ) c1
> FULL OUTER JOIN
> (
> select cid,count(distinct contactid) from tracking where view =
> true group by cid
> ) c2
> USING (cid);
That did the trick!
Many thanks,
Mike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mich@the-lab.org, nis@superlativ.dk
Subject: Re: Where clause
In-Reply-To: <20070627081259.GR50866@mich2.itxmarket.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox