Return 30% of results?

Поиск
Список
Период
Сортировка
От Nick
Тема Return 30% of results?
Дата
Msg-id 4b9921d4-a186-40b5-8c74-e8ada71fa3f1@y28g2000prd.googlegroups.com
обсуждение исходный текст
Ответы Re: Return 30% of results?  (Thomas Kellerer <spam_eater@gmx.net>)
Re: Return 30% of results?  (Martin Gainty <mgainty@hotmail.com>)
Список pgsql-general
Is there a way to return a percentage of the rows found? I tried
window functions but get an error...

ERROR:  syntax error at or near "OVER"

SELECT id, cume_dist FROM (
  SELECT id, cume_dist() OVER (ORDER BY id) FROM employees
) s
WHERE cume_dist < 0.3

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

Предыдущее
От: vikram
Дата:
Сообщение: Re: PostgreSQL on Windows Server 2003 for Moodle
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Return 30% of results?