pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mathijs Brands <mathijs@ilse.nl>
To: Frank Joerdens <frank@x9media.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] trivial problem
Date: Fri, 29 Oct 1999 16:32:53 +0200
Message-ID: <19991029163253.A20151@ilse.nl> (raw)
In-Reply-To: <19991029145529.A2258@flateric.x9media.com>
References: <19991029145529.A2258@flateric.x9media.com>

On Fri, Oct 29, 1999 at 02:55:29PM +0200, Frank Joerdens allegedly wrote:
> this sounds as if there must be a rather trivial solution:
> 
> i am looking for the 50 rows with the largest value for a particular
> column. i could create a view with 
> 
> create view as select * from table order by column; 
> 
> and then somehow only retrieve the top 50 rows . . . but how?
> 
> thanks
> 
> frank
> 
> ************

Use limit?

Mathijs



view thread (9+ messages)  latest in thread

Message-ID: <19991029163253.A20151@ilse.nl>
Permalink:  ../19991029163253.A20151@ilse.nl/
Also on:    postgresql.org/message-id/19991029163253.A20151@ilse.nl

 · 

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 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: mathijs@ilse.nl, frank@x9media.com
  Subject: Re: [SQL] trivial problem
  In-Reply-To: <19991029163253.A20151@ilse.nl>
  References: <19991029145529.A2258@flateric.x9media.com> <19991029163253.A20151@ilse.nl>

* 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