Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 6D5649FBD91 for ; Thu, 15 Feb 2007 12:28:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 48605-09 for ; Thu, 15 Feb 2007 12:28:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id 395A99FBCEA for ; Thu, 15 Feb 2007 12:28:15 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so1214948nfb for ; Thu, 15 Feb 2007 08:28:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k1Pe4E0qqTALksZFrYqmSPqtvGSIp5gjOYt2tJiPlDjKTsskfn8ozleP+xKkLh/Hjng2vH8RLgEHUWeEdFJaqjhIn4rzQk5xbhkkTGCr5O05l2nhYeWgGFqNZns0rEtaH7qXmbpOb9erZCriIjEfiKWe1vffhaqEHBEMSV1/ciM= Received: by 10.82.111.8 with SMTP id j8mr3087986buc.1171556890307; Thu, 15 Feb 2007 08:28:10 -0800 (PST) Received: by 10.82.117.13 with HTTP; Thu, 15 Feb 2007 08:28:10 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2007 11:28:10 -0500 From: "=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" To: pgsql-sql@postgresql.org Subject: Re: Retrieving 'Credit' when 'C' In-Reply-To: <55c095e90702150817m3e462817qa792dba0e1916885@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <55c095e90702150817m3e462817qa792dba0e1916885@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/166 X-Sequence-Number: 27500 SELECT CASE WHEN TYPE = 'C' THEN 'CREDIT' END AS TYPE FROM mytable