Re: DISTINCT ON () with UNION

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DISTINCT ON () with UNION
Дата
Msg-id 4539.989801559@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DISTINCT ON () with UNION  (pgsql@peope.net)
Список pgsql-sql
pgsql@peope.net writes:
> How can you use a distinct on () including the whole union.

In 7.1 you can write

select distinct ... from (select ... union select ...) ss;
        regards, tom lane


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

Предыдущее
От: pgsql@peope.net
Дата:
Сообщение: DISTINCT ON () with UNION
Следующее
От: "Subhramanya Shiva"
Дата:
Сообщение: how to remove ?