X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DDCA532A8C4 for ; Mon, 18 Oct 2004 06:36:43 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45410-01 for ; Mon, 18 Oct 2004 05:36:33 +0000 (GMT) Received: from web14924.mail.yahoo.com (web14924.mail.yahoo.com [216.136.225.8]) by svr1.postgresql.org (Postfix) with SMTP id E574B32A899 for ; Mon, 18 Oct 2004 06:36:33 +0100 (BST) Message-ID: <20041018053631.80052.qmail@web14924.mail.yahoo.com> Received: from [203.101.60.163] by web14924.mail.yahoo.com via HTTP; Sun, 17 Oct 2004 22:36:31 PDT Date: Sun, 17 Oct 2004 22:36:31 -0700 (PDT) From: Simon Moses Subject: create view problem To: pgsql general , pgsql jdbc MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.2 tagged_above=0.0 required=5.0 tests=DEAR_SOMETHING X-Spam-Level: * X-Archive-Number: 200410/756 X-Sequence-Number: 67280 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