Re: query problem in 7.2.1: serious planner issue

Поиск
Список
Период
Сортировка
От Herbert Liechti
Тема Re: query problem in 7.2.1: serious planner issue
Дата
Msg-id Pine.LNX.4.33.0207042004430.15109-100000@standbyme.thinx.ch
обсуждение исходный текст
Ответ на query problem in 7.2.1: serious planner issue  (terry@greatgulfhomes.com)
Список pgsql-general
On Thu, 4 Jul 2002 terry@greatgulfhomes.com wrote:

> I cannot sort on a field that I join across tables.  Here are the examples:
>
> If I do this:
> SELECT offers.lot_id, lots.project_id
> FROM offers, lots
> WHERE offers.lot_id = lots.lot_id
>   AND ...
> UNION
> SELECT offers.lot_id, lots_deleted.project_id
> FROM offers, lots_deleted
> WHERE offers.lot_id = lots_deleted.lot_id
>   AND ...
> ORDER BY lot_id

ORDER BY 1

Regards Herbie

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti                                  http://www.thinx.ch
The content management company.         Visit http://www.contentx.ch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




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

Предыдущее
От: Angela Luyf
Дата:
Сообщение: two primairy key in one table ?
Следующее
От: Mike Harding
Дата:
Сообщение: Re: repeatable crash generating two column index