Written by:David Aldridge6/21/2011 3:59 PM
This is done using the greatest() and least() functions respectively. So to find the max across three columns then you would use something like:select greatest(col1,col2,col3) from mytable; To find the minimum you would use:select least(col1,col2,col3) from mytable;
select greatest(col1,col2,col3) from mytable;
select least(col1,col2,col3) from mytable;
0 comment(s) so far...