select row with minimum value sql code example
Example 1: sql select lowest value row
SELECT t1.*
FROM employees t1
INNER JOIN (
SELECT id, min(salary) AS salary FROM employees GROUP BY id
) t2 ON t1.id = t2.id AND t1.salary = t2.salary;
Example 2: select minimum value sql
/*this return only one row with the minimum value stored of your_column*/
select min(your_column)
from your_table;