From: Greg Youngblood <YoungblG@houstoncellular.com>
To: 'Sferacarta Software' <sferac@bo.nettuno.it>
To: 'PostgreSQL SQL List' <pgsql-sql@postgresql.org>
Subject: RE: Re[2]: [SQL] Please help: How to determine largest of two num bers in a query?
Date: Thu, 3 Dec 1998 13:23:28 -0600
Message-ID: <2B9713A99045D211BB4E0008C75668692EA712@SCORPEXC1.houstoncell.com> (raw)
Many many thanks.. This is exactly what I was looking for.
I must be totally blind... Where can I find a list of the functions Postgres
already has.. I'm sure there has to be a way..
-----Original Message-----
From: Sferacarta Software [mailto:sferac@bo.nettuno.it]
Sent: Thursday, December 03, 1998 6:39 AM
To: Greg Youngblood; David Hartwig; 'PostgreSQL SQL List'
Subject: Re[2]: [SQL] Please help: How to determine largest of two
numbers in a query?
PostgreSQL has already these built-in funcions (those used on
aggregate MIN/MAX):
int2 |int2larger |int2 int2 |larger of two
int2 |int2smaller |int2 int2 |smaller of two
int4 |int4larger |int4 int4 |larger of two
int4 |int4smaller |int4 int4 |smaller of two
int8 |int8larger |int8 int8 |larger of two
int8 |int8smaller |int8 int8 |smaller of two
exemple:
SELECT int4larger(3,10)
int4larger
----------
10
(1 row)
-Jose'-
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: YoungblG@houstoncellular.com, sferac@bo.nettuno.it
Subject: Re: [SQL] Please help: How to determine largest of two num bers in a query?
In-Reply-To: <2B9713A99045D211BB4E0008C75668692EA712@SCORPEXC1.houstoncell.com>
References: <2B9713A99045D211BB4E0008C75668692EA712@SCORPEXC1.houstoncell.com>
* 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