Re: Function TOP

Поиск
Список
Период
Сортировка
От Len Morgan
Тема Re: Function TOP
Дата
Msg-id 007f01c074f8$805772e0$0908a8c0@H233.bstx.cc
обсуждение исходный текст
Ответ на Function TOP  ("Tomasz Janyska" <tjanyska@laser.pl>)
Список pgsql-general
If the data is sorted, you can add "... LIMIT <number of records you want,
i.e. 10> ;" at the end of the query.  If you want a percentage (like TOP
10%) you will have to first find out (maybe with COUNT()) how many records
apply and then do a little math to find out what the number of your LIMIT
clause should be.

Len Morgan

-----Original Message-----
From: Tomasz Janyska <tjanyska@laser.pl>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Date: Tuesday, January 02, 2001 1:25 PM
Subject: [GENERAL] Function TOP


>Is there in Postgres such a function like TOP in MSSQL?
>
>
>


В списке pgsql-general по дате отправления:

Предыдущее
От: Andre Fortin
Дата:
Сообщение: How to identify the class of a record
Следующее
От: "Eric Mueller"
Дата:
Сообщение: RE: Re: MySQL and PostgreSQL speed compare