Search Postgresql Archives

Re: UNION question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



M == Matthew.Hartman@xxxxxxxxxx writes:

 M> > > From: pgsql-general-owner@xxxxxxxxxxxxxx [mailto:pgsql-general-
 M> > > owner@xxxxxxxxxxxxxx] On Behalf Of Brandon Metcalf
 M> > > Sent: Friday, July 10, 2009 12:16 PM
 M> >
 M> > Change it to this:

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


Thanks.  Got it to work.

-- 
Brandon

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux