Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id D1BF69FBDBB for ; Thu, 15 Feb 2007 12:30:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 01218-07 for ; Thu, 15 Feb 2007 12:30:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id C41169FBDE4 for ; Thu, 15 Feb 2007 12:30:17 -0400 (AST) Received: from perhan.alvh.no-ip.org (216-155-79-222.bk1-dsl.surnet.cl [216.155.79.222]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l1FGUHYG027608; Thu, 15 Feb 2007 08:30:18 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id AEDBF32A18; Thu, 15 Feb 2007 13:30:14 -0300 (CLST) Date: Thu, 15 Feb 2007 13:30:14 -0300 From: Alvaro Herrera To: Ezequias Rodrigues da Rocha Cc: pgsql-sql@postgresql.org Subject: Re: Retrieving 'Credit' when 'C' Message-ID: <20070215163014.GP4682@alvh.no-ip.org> Mail-Followup-To: Ezequias Rodrigues da Rocha , pgsql-sql@postgresql.org References: <55c095e90702150817m3e462817qa792dba0e1916885@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55c095e90702150817m3e462817qa792dba0e1916885@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Thu, 15 Feb 2007 08:30:18 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.232 tagged_above=0 required=5 tests=AWL, BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/167 X-Sequence-Number: 27501 Ezequias Rodrigues da Rocha escribió: > Hello, > > Does anyone know how to make a Select that even having a Char(1) with the > letter C the statement makes the rows appearing 'CREDIT' ? case when column = 'C' then 'CREDIT' end -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.