pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-sql@postgresql.org
Subject: Re: How to find out top 3 records in each location
Date: Mon, 20 Nov 2006 12:48:22 -0500
Message-ID: <20061120174822.GB29317@phlogiston.dyndns.org> (raw)
In-Reply-To: <00e001c70cc6$926292a0$6f0aa8c0@miswen>
References: <00e001c70cc6$926292a0$6f0aa8c0@miswen>

On Mon, Nov 20, 2006 at 12:09:00PM -0500, wen tseng wrote:
> 
> Since PostgreSQL doesn't support TOP, how can I do to get this result?
> Any solution will be appreciated.

Check out the crosstab stuff in contrib/; I think it does what you
want.

a

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
The whole tendency of modern prose is away from concreteness.
		--George Orwell



view thread (4+ messages)  latest in thread

Message-ID: <20061120174822.GB29317@phlogiston.dyndns.org>
Permalink:  ../20061120174822.GB29317@phlogiston.dyndns.org/
Also on:    postgresql.org/message-id/20061120174822.GB29317@phlogiston.dyndns.org

 · 

reply

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: ajs@crankycanuck.ca
  Subject: Re: How to find out top 3 records in each location
  In-Reply-To: <20061120174822.GB29317@phlogiston.dyndns.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