pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Moses <ks_moses@yahoo.com>
To: pgsql general <pgsql-general@postgresql.org>
To: pgsql jdbc <pgsql-jdbc@postgresql.org>
Subject: create view problem
Date: Sun, 17 Oct 2004 22:36:31 -0700 (PDT)
Message-ID: <20041018053631.80052.qmail@web14924.mail.yahoo.com> (raw)

dear sir,
i am trying to create view with following query

create view salesQ as
select * from sales, customer where sales.customerkey
= customer.customerkey;

it is giving 

ERROR:  column "customerkey" duplicated

create view salesQ as
select sales.*, customer.* from sales, customer where
sales.customerkey = customer.customerkey;

also giving same error.
i cannot change field names or specify field names in
view definition because many fields are there in both
tables. how to create this view?

thanks in advance,
-Simon Moses,
Bangalore, India.

=====
**************************
Visit My Home Page
http://www.geocities.com/ks_moses
updated: 28 Sep 2004.
Simon Moses
**************************


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



view thread (2+ messages)  latest in thread

Message-ID: <20041018053631.80052.qmail@web14924.mail.yahoo.com>
Permalink:  ../20041018053631.80052.qmail@web14924.mail.yahoo.com/
Also on:    postgresql.org/message-id/20041018053631.80052.qmail@web14924.mail.yahoo.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: ks_moses@yahoo.com, pgsql-general@postgresql.org
  Subject: Re: create view problem
  In-Reply-To: <20041018053631.80052.qmail@web14924.mail.yahoo.com>
  References: <20041018053631.80052.qmail@web14924.mail.yahoo.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