pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Eduardo Noeda <enoeda@virtualsw.es>
To: pgsql-sql@postgreSQL.org
Subject: IIF..
Date: Mon, 29 Mar 1999 12:49:19 +0200
Message-ID: <199903291249190210.00CEB3B9@mail.virtualsw.es> (raw)

Hi!

I'm new in the list (and in PostgreSQL too). I'd like to know if it's posible to perform a function like SQL Server's "iif" in a SELECT query. Some like:

SELECT iif (Number=1, "First", "Other") AS Description
FROM Table;

I don't know if I've explained properly...
--
Eduardo Noeda  --  Virtual Software
enoeda@virtualsw.es




view thread (5+ messages)  latest in thread

Message-ID: <199903291249190210.00CEB3B9@mail.virtualsw.es>
Permalink:  ../199903291249190210.00CEB3B9@mail.virtualsw.es/
Also on:    postgresql.org/message-id/199903291249190210.00CEB3B9@mail.virtualsw.es

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: enoeda@virtualsw.es
  Subject: Re: IIF..
  In-Reply-To: <199903291249190210.00CEB3B9@mail.virtualsw.es>
  References: <199903291249190210.00CEB3B9@mail.virtualsw.es>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox