Answers for "SQL query to display 2nd highest salaried employee details. And may ask for nth highest"

SQL
0

sql highest salary by location

/*  Highest salary by Department/Location   */
SELECT e.ename, e.sal, e.deptno, d.loc
FROM emp e
JOIN dept d
ON e.deptno = d.deptno
WHERE e.sal in
( 	
  	select max(sal) 
  	from emp 
  	group by deptno
)
Posted by: Guest on June-28-2020
0

n highest salary in sql

SELECT salary FROM Employee ORDER BY salary DESC LIMIT N-1, 1
Posted by: Guest on February-07-2020

Code answers related to "SQL query to display 2nd highest salaried employee details. And may ask for nth highest"

Code answers related to "SQL"

Browse Popular Code Answers by Language