Re: Top N Records Per Group - Mailing list pgsql-general

From Marie G. Tuite
Subject Re: Top N Records Per Group
Date
Msg-id IGELKLINGDMODABPOOFEOEKACFAA.marie.tuite@edisonaffiliates.com
Whole thread Raw
In response to Top N Records Per Group  (valerie@webtribe.net)
List pgsql-general
There is a limit which is similar to SQL2K and there is also an offset
option.

select blah from blah limit 5;

> -----Original Message-----
> From: pgsql-general-owner@postgresql.org
> [mailto:pgsql-general-owner@postgresql.org]On Behalf Of
> valerie@webtribe.net
> Sent: Tuesday, July 30, 2002 2:11 AM
> To: pgsql-general@postgresql.org
> Subject: [GENERAL] Top N Records Per Group
>
>
> Is there a "top" function in postgres?  I've had a look and
> don't see one.
>
> As an example:  How would I extract the top 5 salesmen PER
> region using Postgres?
>
> TIA
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>



pgsql-general by date:

Previous
From: Jeff Davis
Date:
Subject: custom type similar to varchar(#)
Next
From: Daniel Wickstrom
Date:
Subject: Re: MySQL or Postgres ?