From: Petter Reinholdtsen <pere@hungry.com>
To: pgsql-sql@postgresql.org
Subject: Oracle greatest() and nvl() equivalent?
Date: Wed, 30 Jun 1999 10:53:03 +0200
Message-ID: <199906300853.KAA28867@lee.cc.uit.no> (raw)
I have the following SQL construct from Oracle. How do I express this
in PostgreSQL 6.5?
SELECT greatest(nvl(max(when_updated),0),
nvl(max(when_inserted),0),
nvl(max(when_marked_for_delete),0))
FROM source_table;
I'm not on this list. Please cc replies to me.
--
##> Petter Reinholdtsen <## | pere@td.org.uit.no
O- <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/ | Go Mozilla, go! Go!
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: pere@hungry.com
Subject: Re: Oracle greatest() and nvl() equivalent?
In-Reply-To: <199906300853.KAA28867@lee.cc.uit.no>
References: <199906300853.KAA28867@lee.cc.uit.no>
* 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