Breaking News
Loading...
06/05/2014

Tìm mức lương cao nhất thứ 2

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

0 comments:

Post a Comment

 
Toggle Footer