SELECT TOP 1 salary FROM ( SELECT TOP 2 salary FROM employees ORDER BY salary DESC) AS emp ORDER BY salary ASC
Read more: http://javarevisited.blogspot.com/2012/12/how-to-find-second-highest-or-maximum-salary-sql.html#ixzz30wwoDFgP
Home
»
»Unlabelled
» Tìm mức lương cao nhất thứ 2
Tìm mức lương cao nhất thứ 2
22:29
0 comments:
Post a Comment