getting min/max of two values

From: rihad <rihad(at)mail(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: getting min/max of two values
Date: 2007-09-15 07:40:50
Message-ID: 46EB8C82.1050607@mail.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How can I efficiently return the minimum/maximum of two given
expressions? Like SELECT MYMIN(a+b-c,d+e*f).

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Panagiwths Pediadiths 2007-09-15 08:28:04 Re: Locking entire database
Previous Message Tom Lane 2007-09-15 02:51:48 Re: NOT NULL Issue