From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Frank Joerdens <frank(at)x9media(dot)com> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] trivial problem |
Date: | 1999-10-29 14:27:40 |
Message-ID: | Pine.GSO.3.96.SK.991029182706.21751d-100000@ra |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)x9media(dot)com>
> To: pgsql-sql(at)postgreSQL(dot)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(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Mathijs Brands | 1999-10-29 14:32:53 | Re: [SQL] trivial problem |
Previous Message | Tom Lane | 1999-10-29 13:44:55 | Re: [SQL] Problem with datetime |