Re: view creation question - Mailing list pgsql-general

From Michael Fuhr
Subject Re: view creation question
Date
Msg-id 20060309160705.GA70671@winnie.fuhr.org
Whole thread Raw
In response to view creation question  ("Larry White" <ljw1001@gmail.com>)
List pgsql-general
On Thu, Mar 09, 2006 at 10:55:12AM -0500, Larry White wrote:
> I need a read only view that concatenates data from two tables. Basically
> both tables would need a simple query like
>
> Select name, description, date from Tasks;
>
> Select name, description, date from Issues;
>
> Is there some way to wrap these two independent queries in a "CREATE VIEW
> myview AS" statement?

Use UNION or UNION ALL.

http://www.postgresql.org/docs/8.1/interactive/queries-union.html

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Larry White"
Date:
Subject: view creation question
Next
From: Michael Glaesemann
Date:
Subject: Re: view creation question