Re: LIMIT BASED ON PERCENT

Поиск
Список
Период
Сортировка
От Lee Hachadoorian
Тема Re: LIMIT BASED ON PERCENT
Дата
Msg-id 5ab13580911181121g6e89759doa6c6ea6557424f71@mail.gmail.com
обсуждение исходный текст
Ответ на LIMIT BASED ON PERCENT  (Another Trad <anothertrad@gmail.com>)
Ответы Re: LIMIT BASED ON PERCENT  (Another Trad <anothertrad@gmail.com>)
Список pgsql-sql
Your SQL works for me exactly as it is (substituting a table in my
database). What error are you getting?

On Wed, Nov 18, 2009 at 2:12 PM, Another Trad <anothertrad@gmail.com> wrote:
> My question is quite simple: I want to select all the records from my table,
> but I want apply a LIMIT of 20% in the lines. like:
> select * from client limit 20%
> I have tried (of course, with no success) this:
> select * from client limit ((select count(*) from client)*20/100)
>



-- 
Lee Hachadoorian
PhD Student, Geography
Program in Earth & Environmental Sciences
CUNY Graduate Center


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

Предыдущее
От: Another Trad
Дата:
Сообщение: LIMIT BASED ON PERCENT
Следующее
От: Another Trad
Дата:
Сообщение: Re: LIMIT BASED ON PERCENT