Re: UNION question

Поиск
Список
Период
Сортировка
От Hartman, Matthew
Тема Re: UNION question
Дата
Msg-id 366642367C5B354197A1E0D27BC175BD02259891@KGHMAIL.KGH.ON.CA
обсуждение исходный текст
Ответ на Re: UNION question  ("Hartman, Matthew" <Matthew.Hartman@krcc.on.ca>)
Ответы Re: UNION question
Список pgsql-general
> > From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-
> > owner@postgresql.org] On Behalf Of Brandon Metcalf
> > Sent: Friday, July 10, 2009 12:16 PM
>
> Change it to this:

Sorry, I forgot that you need to split the GROUP BY clause as well in a
similar manner to the WHERE clause. And unless you have duplicate rows
to eliminate, use UNION ALL rather than UNION for a speed increase.

Matthew Hartman
Programmer/Analyst
Information Management, ICP
Kingston General Hospital
.now.


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

Предыдущее
От: "Hartman, Matthew"
Дата:
Сообщение: Re: UNION question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: UNION question