Re: Quota query with decent performance?

Поиск
Список
Период
Сортировка
От Troels Arvin
Тема Re: Quota query with decent performance?
Дата
Msg-id pan.2003.11.18.15.06.32.806768@arvin.dk
обсуждение исходный текст
Ответ на Quota query with decent performance?  (Troels Arvin <troels@arvin.dk>)
Список pgsql-sql
On Tue, 18 Nov 2003 08:36:27 -0600, Bruno Wolff III wrote:

> The standard syntax is expression is false instead of
> isfalse(expression)

OK, so I guess that a 'better' (closer to standard) version of your query
would be:

SELECT *
FROM pview
WHERE ( age <= (   SELECT age FROM pview   ORDER BY age ASC   LIMIT 1 OFFSET 20       -- 2=n-1 )
) IS NOT FALSE;

-- 
Greetings from Troels Arvin, Copenhagen, Denmark




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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Quota query with decent performance?
Следующее
От: Jeff Boes
Дата:
Сообщение: Need query to separate rows by one field's value