sql select min row

Solutions on MaxInterview for sql select min row by the best coders in the world

showing results for - "sql select min row"
Olivia
03 Apr 2016
1SELECT t1.*
2FROM employees t1
3INNER JOIN (
4    SELECT id, min(salary) AS salary FROM employees GROUP BY id
5) t2 ON t1.id = t2.id AND t1.salary = t2.salary;