pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dylan Lorimer <edylan@google.com>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Duplicate Fields + Views Questions
Date: Fri, 3 Nov 2006 16:28:06 -0800
Message-ID: <3ddac38d0611031628y16fc3ab8ma425282efa509ba7@mail.gmail.com> (raw)
In-Reply-To: <20061104001858.29178.qmail@web31808.mail.mud.yahoo.com>
References: <3ddac38d0611031607w5564c44dk8e0c0a6cd5fdf0c@mail.gmail.com>
	<20061104001858.29178.qmail@web31808.mail.mud.yahoo.com>

Thanks,

Got it working with a UNION.
Cheers,
dylan

On 11/3/06, Richard Broersma Jr <rabroersma@yahoo.com> wrote:
>
> > I've got 2 views - each with identical column names. I want to create an
> > aggregate view of both tables as a new view. But when I try to do this I
> > understandably get errors on duplicate fields.
> >
> > As an example:
> >
> > CREATE VIEW gnis_view AS SELECT * FROM gnis_international_view,
> > gnis_usa_view;
> > ERROR:  column "the_geom" duplicated
> > ERROR:  column "the_geom" duplicated
> >
> > Any ideas on how I can achieve what I am seeking
>
> Yes but you will have to specify each column name from each table and
> create aliases for the
> duplicated columns.
>
> Regards,
>
> Richard Broersma Jr.
>



-- 
E. Dylan Lorimer | Google Earth Enterprise
650.253.2459 (O) | 650.862.6810 (M) | 650.644.0182 (F)
--------------------------------------------------------------------------------
Earth Enterprise Support: fusion@google.com | 866.4GO.OGLE ext. 4

view thread (3+ messages)

Message-ID: <3ddac38d0611031628y16fc3ab8ma425282efa509ba7@mail.gmail.com>
Permalink:  ../3ddac38d0611031628y16fc3ab8ma425282efa509ba7@mail.gmail.com/
Also on:    postgresql.org/message-id/3ddac38d0611031628y16fc3ab8ma425282efa509ba7@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: edylan@google.com, rabroersma@yahoo.com
  Subject: Re: Duplicate Fields + Views Questions
  In-Reply-To: <3ddac38d0611031628y16fc3ab8ma425282efa509ba7@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox