Gunther Mayer <gunther(dot)mayer(at)googlemail(dot)com> writes:> SELECT minimum(5,6) => 5
You're looking for the least/greatest functions (in 8.1 and up IIRC).
regards, tom lane