Postgresql answer.
Re: Find the minimum or maximum value across several columns?
Postgresql has two commands that come in handy, one is greatest() the other least()
[sql]
SELECT max(greatest(col1, col2) FROM table
SELECT min(least(col1, col2) FROM table
[/sql]
|