Re: sort / limit / range problem - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: sort / limit / range problem
Date
Msg-id 20030305154724.M33531@klaster.net
Whole thread Raw
In response to sort / limit / range problem  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
> Hi folks,
> 
> I've got a glossary table that I'm trying to render to HTML. 
>  However, I've got a problem when using order by and limit.  Below 
> is an example of  a psql session showing my problem. Anyone got any 
> reasons why the last select misses  'Driver'?
> 

Everything is ok. Without order by, limit has undeterminated result. It is 
described in Postgresql documentation.

Try this:

select glterm from glossary where glterm > 'Driving Wheels' 
order by glterm limit 1

select glterm from glossary where glterm > 'Draw Bar'
order by glterm limit 1

Regards,
Tomasz Myrta



pgsql-sql by date:

Previous
From: Gary Stainburn
Date:
Subject: sort / limit / range problem
Next
From: Achilleus Mantzios
Date:
Subject: Re: sort / limit / range problem