From: Matthew Hagerty <matthew@brwholesale.com>
To: pgsql-sql@postgresql.org
Subject: Query Praise!
Date: Fri, 19 Apr 2002 15:24:48 -0400
Message-ID: <5.1.0.14.2.20020419152136.00b50938@imap.brwholesale.com> (raw)
Haha, Tom Lane (and all the pg developers), you ROCK! Thanks a million!!!
These kinds of queries save my ass!
select sum(score) from (select distinct on (question_id) score from answers
where score is not null order by question_id,score) as score;
Matthew
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: matthew@brwholesale.com
Subject: Re: Query Praise!
In-Reply-To: <5.1.0.14.2.20020419152136.00b50938@imap.brwholesale.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