Search Postgresql Archives

Re: view creation question

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

 



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


[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