Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by hub.org (8.9.3/8.9.3) with ESMTP id KAA14229 for ; Fri, 29 Oct 1999 10:28:24 -0400 (EDT) (envelope-from oleg@sai.msu.su) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.1/8.9.1) with SMTP id SAA12103; Fri, 29 Oct 1999 18:27:40 +0400 (MSD) Date: Fri, 29 Oct 1999 18:27:40 +0400 (MSD) From: Oleg Bartunov X-Sender: megera@ra To: Frank Joerdens cc: pgsql-sql@postgreSQL.org Subject: Re: [SQL] trivial problem In-Reply-To: <19991029145529.A2258@flateric.x9media.com> Message-ID: Organization: Sternberg Astronomical Institute (Moscow University) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > 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