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
06/05/2014
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment