From: Mitch Vincent <mitch@venux.net>
To: pgsql-sql@postgreSQL.org
Subject: New count() question
Date: Sun, 19 Dec 1999 13:26:59 -0500
Message-ID: <014d01bf4a4e$a41e0ac0$0300000a@doot.org> (raw)
References: <Pine.GSO.3.96.SK.991219211402.11677F-100000@ra>
Ok, so it's two queries. I have another intersting problem though.. Example
of one of my count queries :
select count (*) as total from applicants as a,applicants_states as
s,resume_search as re where a.app_id=s.app_id and a.app_id=re.app_id and
re.user_id=291
That's all well and fine except that it only counts the total from the
applicants table, not the total from the rest of the query.
I know I'm just not doing something right (obviously), can someone lend a
hand?
I've played with grouping but can't seem to get the syntax all right.
Thanks (again)!
-Mitch
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: mitch@venux.net
Subject: Re: New count() question
In-Reply-To: <014d01bf4a4e$a41e0ac0$0300000a@doot.org>
References: <Pine.GSO.3.96.SK.991219211402.11677F-100000@ra> <014d01bf4a4e$a41e0ac0$0300000a@doot.org>
* 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