RE: Re[2]: [SQL] Please help: How to determine largest of two num bers in a query?

From: Greg Youngblood <YoungblG(at)houstoncellular(dot)com>
To: "'Sferacarta Software'" <sferac(at)bo(dot)nettuno(dot)it>, "'PostgreSQL SQL List'" <pgsql-sql(at)postgresql(dot)org>
Subject: RE: Re[2]: [SQL] Please help: How to determine largest of two num bers in a query?
Date: 1998-12-03 19:23:28
Message-ID: 2B9713A99045D211BB4E0008C75668692EA712@SCORPEXC1.houstoncell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)bo(dot)nettuno(dot)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'-

Browse pgsql-sql by date

  From Date Subject
Next Message Barracuda 1998-12-03 19:53:49 RE: Re[2]: [SQL] Please help: How to determine largest of two num bers in a query?
Previous Message Greg Youngblood 1998-12-03 19:19:07 RE: [SQL] Please help: How to determine largest of two numbers in a query?