From: | "Josh Berkus" <josh(at)agliodbs(dot)com> |
---|---|
To: | Robert Wynter <rgwynter(at)rci(dot)rogers(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: union query format |
Date: | 2002-04-26 20:42:53 |
Message-ID: | web-1386026@davinci.ethosmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Fri, 26 Apr 2002 15:46:21 -0400
Robert Wynter <rgwynter(at)rci(dot)rogers(dot)com> wrote:
> Hi Josh,
> Thanks for the help.
>
> Question, How do I format in a union query. Is there a SELECT SQL
> code I
> could use. I've been trying to find internet code examples to find
> that out.
Just like you would in a regular query.
SELECT to_char(sub_date, 'YYYY-MM-DD') as entry, adv, etc ....
UNION ALL
SELECT mps, adv, etc .....
(I generally use UNION ALL because it doesn't require the DB to test
for uniqueness and thus runs faster in cases where I expect all rows to
be unique anyway).
-Josh
From | Date | Subject | |
---|---|---|---|
Next Message | Wayne Seward | 2002-04-26 20:45:48 | Trying to purchase an annual subscription to the CD distribution |
Previous Message | Oleg Lebedev | 2002-04-26 20:01:19 | Re: Connection authentication |