Re: view creation question - Mailing list pgsql-general

From Richard Huxton
Subject Re: view creation question
Date
Msg-id 441051AC.8020007@archonet.com
Whole thread Raw
In response to view creation question  ("Larry White" <ljw1001@gmail.com>)
Responses Re: view creation question  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
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?

SELECT * FROM Tasks
UNION ALL
SELECT * FROM Issues;

HTH
--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: view creation question
Next
From: Csaba Nagy
Date:
Subject: Re: view creation question