Re: 'greatest' function?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: brian <brian(at)zijn-digital(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 'greatest' function?
Date: 2007-02-08 04:14:04
Message-ID: 200702080414.l184E4g06682@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

brian wrote:
> jws wrote:
> > Is there any buil-in function to return the lesser of two numbers?
> >
> > i.e. lesser(100,125) would return 100.
> >
> > Do I need to roll my own?
> >
>
> Which is it--greatest or least?
>
> No matter, TFM has something to say about it:
> http://www.postgresql.org/docs/current/static/functions-math.html#FUNCTIONS-MATH-FUNC-TABLE

Uh, what function in that table helps him --- I don't see it.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adam Rich 2007-02-08 04:15:13 Re: 'greatest' function?
Previous Message brian 2007-02-08 04:06:48 Re: 'greatest' function?