Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.236.160]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB6FlVm69619 for ; Thu, 6 Dec 2001 10:47:31 -0500 (EST) (envelope-from roberto@brasileiro.net) Received: from roberto by brasileiro.net with local (Exim 3.33 #1 (Debian)) id 16C0ld-0005cA-00; Thu, 06 Dec 2001 08:48:57 -0700 Date: Thu, 6 Dec 2001 08:48:57 -0700 From: Roberto Mello To: Tapan Trivedi Cc: pgsql-sql@postgresql.org Subject: Re: Inline IF condition Message-ID: <20011206084857.A21559@cc.usu.edu> References: <01120317345201.01361@pse061_linux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01120317345201.01361@pse061_linux> User-Agent: Mutt/1.3.23i X-Archive-Number: 200112/76 X-Sequence-Number: 5899 On Mon, Dec 03, 2001 at 05:34:51PM +0530, Tapan Trivedi wrote: > Hi all, > > Does Postgresql support DECODE() or IIF() functions like Oracle or SQLServer > 2000 does ?? PostgreSQL supports the standard CASE...WHEN... that replaces DECODE. Oracle supports CASE WHEN too, but Oracle users usually use the Oracleisms counterparts. I'm not familiar with IIF. What's it for? -Roberto P.S.: The PG docs have more info on CASE WHEN. -- +----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU - http://www.brasileiro.net http://www.sdl.usu.edu - Space Dynamics Lab, Developer All in all, you're just another brick on the wall...