From: Richard Broersma <richard.broersma@gmail.com>
To: Hall, Crystal M CTR DISA JITC <Crystal.Hall.ctr@disa.mil>
Cc: pgsql-sql@postgresql.org
Subject: Re: left outer join on more than 2 tables? (UNCLASSIFIED)
Date: Tue, 16 Jun 2009 15:54:16 -0700
Message-ID: <396486430906161554m4024a2bfuc7abad514f1e3dd6@mail.gmail.com> (raw)
In-Reply-To: <00E9117C300386479B7E2F3CDBF798F605534293@pothia.disanet.disa-u.mil>
References: <4A3807CF.90109@consumercontact.com>
<396486430906161425i1cb7949enff5443cc2043805a@mail.gmail.com>
<4A38114B.7090106@gmail.com>
<00E9117C300386479B7E2F3CDBF798F605534293@pothia.disanet.disa-u.mil>
On Tue, Jun 16, 2009 at 2:52 PM, Hall, Crystal M CTR DISA
JITC<Crystal.Hall.ctr@disa.mil> wrote:
> Maybe I am way of base here, but I see a reference to region in this
> query. However, I think count(cm.id) is correct because some would have
> a count of 0. Count(*) would produce counts when there are no
> complaints. (If I understand the logic, again, I am VERY new to this)
Here is a very good website to visit to get practice with SQL using PostgreSQL.
http://www.sqlzoo.net/select_group_by
If you look up at the upper right corner of the web-page, you can
select PostgreSQL are your RDBMS (other flavors are available also).
--
Regards,
Richard Broersma Jr.
Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug
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: richard.broersma@gmail.com, Crystal.Hall.ctr@disa.mil
Subject: Re: left outer join on more than 2 tables? (UNCLASSIFIED)
In-Reply-To: <396486430906161554m4024a2bfuc7abad514f1e3dd6@mail.gmail.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