select min( least ( col1, col2, col3, col4)) from you_table [ where ...]