Re: Select * from ( Select etc..)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Select * from ( Select etc..)
Дата
Msg-id 13360.979259322@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Select * from ( Select etc..)  (Jeffery L Post <postjeff@uwm.edu>)
Список pgsql-general
Jeffery L Post <postjeff@uwm.edu> writes:
> I am just wondering how I can select from a generated dataset.

Use 7.1.

> ex.
>   Select * from (
>     select first, last from staff where salary > 12000
>    union
>     select first, last from staff where salary < 50000
>    )
>   order by last

... although this example is not exactly compelling, since you could
just write

    select first, last from staff where salary > 12000
   union
    select first, last from staff where salary < 50000
   order by last

            regards, tom lane

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

Предыдущее
От: Mirko Zeibig
Дата:
Сообщение: Re: PostgreSQL v7.1BETA3 Bundled and Available ...
Следующее
От: "Mikheev, Vadim"
Дата:
Сообщение: RE: Re: Loading optimization