Re: view creation question

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Larry White <ljw1001(at)gmail(dot)com>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: view creation question
Date: 2006-03-09 16:30:55
Message-ID: 1141921855.11827.2.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In addition to the other replies (regarding UNION), are you aware that
you can use inheritance in postgres to factor out common fields ? Then
you could use the parent table to access the common denominator of the
children. I'm not sure though if this fits your needs, just worth
mentioning.
See also:
http://www.postgresql.org/docs/8.1/static/tutorial-inheritance.html

Cheers,
Csaba.

On Thu, 2006-03-09 at 16:55, 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?
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mongi LASSOUED 2006-03-09 16:31:07 posgresql server connection
Previous Message Michael Glaesemann 2006-03-09 16:14:20 Re: view creation question