Re: Quota query with decent performance? - Mailing list pgsql-sql

From Troels Arvin
Subject Re: Quota query with decent performance?
Date
Msg-id pan.2003.11.18.15.06.32.806768@arvin.dk
Whole thread Raw
In response to Quota query with decent performance?  (Troels Arvin <troels@arvin.dk>)
List 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 by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Quota query with decent performance?
Next
From: Jeff Boes
Date:
Subject: Need query to separate rows by one field's value