X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 726F6D1DBAF for ; Sat, 10 Apr 2004 12:17:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 26219-04 for ; Sat, 10 Apr 2004 12:17:15 -0300 (ADT) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 5EE66D1D9F6 for ; Sat, 10 Apr 2004 12:17:15 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4817489; Sat, 10 Apr 2004 08:18:35 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: "Rajeev Chaudhary, Noida" , "'pgsql-sql@postgresql.org'" Subject: Re: hi sir urgent..required a Query Date: Sat, 10 Apr 2004 08:16:40 -0700 User-Agent: KMail/1.4.3 References: <1B3885BC15C7024C845AAC78314766C583DC42@exch-01.noida.hcltech.com> In-Reply-To: <1B3885BC15C7024C845AAC78314766C583DC42@exch-01.noida.hcltech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200404100816.40650.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/91 X-Sequence-Number: 17466 Rajeev, > I am attaching a document with this file showing two table.. < you.doc>> > > It consist of two table VALUE AND VALUE_TYPE.. > > when i have value_type_id=1 i must get Value_varchar column value > > when i have value_type_id=2 i must get Value_int column value > Please send a SQL query for this... Please re-post this with your table design in the body of your e-mail, and NO doc attachment. -- Josh Berkus Aglio Database Solutions San Francisco