Answers for "finding maximum salary in sql"

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

how to get employee having maximum experience in mysql

select max(salary), dept_id from employee where salary not in(select max(salary) from employee) group by dept_id;
Posted by: Guest on November-02-2020

Code answers related to "finding maximum salary in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language