Given the following table in SQL Server 2005:
ID Col1 Col2 Col3 -- ---- ---- ---- 1 3 34 76 2 32 976 24 3 7
On MySQL, use this:
select least(col1, col2, col3) FROM yourtable