Re: left outer join on more than 2 tables? - Mailing list pgsql-sql

From Richard Broersma
Subject Re: left outer join on more than 2 tables?
Date
Msg-id 396486430906161550v30befebelcfddd58ebc4b4f2d@mail.gmail.com
Whole thread Raw
In response to Re: left outer join on more than 2 tables?  (Rob Sargent <robjsargent@gmail.com>)
Responses Re: left outer join on more than 2 tables?  (Rob Sargent <robjsargent@gmail.com>)
Re: left outer join on more than 2 tables? (UNCLASSIFIED)  ("Hall, Crystal M CTR DISA JITC" <Crystal.Hall.ctr@disa.mil>)
List pgsql-sql
On Tue, Jun 16, 2009 at 2:40 PM, Rob Sargent<robjsargent@gmail.com> wrote:

> Is there a city without a reference to region?

I don't know, but the OP wanted to know complaints by region.


>  And wouldn't you want to count(cm.id)?

Count(cm.id) and Count(*) produce the same result.  But I like
Count(*) more since it helps to correctly express the idea that we are
counting rows per group and not cm.id(s) per group.



--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug


pgsql-sql by date:

Previous
From: Richard Broersma
Date:
Subject: Re: left outer join on more than 2 tables?
Next
From: Richard Broersma
Date:
Subject: Re: left outer join on more than 2 tables? (UNCLASSIFIED)