From: Oleg Bartunov <oleg@sai.msu.su>
To: Frank Joerdens <frank@x9media.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] trivial problem
Date: Fri, 29 Oct 1999 18:27:40 +0400 (MSD)
Message-ID: <Pine.GSO.3.96.SK.991029182706.21751d-100000@ra> (raw)
In-Reply-To: <19991029145529.A2258@flateric.x9media.com>
select * from table order by column limit 50
Oleg
On Fri, 29 Oct 1999, Frank Joerdens wrote:
> Date: Fri, 29 Oct 1999 14:55:29 +0200
> From: Frank Joerdens <frank@x9media.com>
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] trivial problem
>
> 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
>
> ************
>
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
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: oleg@sai.msu.su, frank@x9media.com
Subject: Re: [SQL] trivial problem
In-Reply-To: <Pine.GSO.3.96.SK.991029182706.21751d-100000@ra>
References: <19991029145529.A2258@flateric.x9media.com> <Pine.GSO.3.96.SK.991029182706.21751d-100000@ra>
* 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