i had a database with 4 column and each column has a value, below are the sample.
----------------------
col1-col2-col3-col4 --
1------4-----7---------
5------3----------10---
6------------5----12---
my question is how can i get the lowest value in each row?
here's an output that i wanted to get:
1
3
5
and here's my syntax that i used
"select least(col1,col2,col3,col4) as price from test"
but the output is null, i guess due to the column that has a null value..
thnx n advance I'd greatly appreciated your help.