Answers for "select max salary in sql"

SQL
1

how to find max and min salary in sql

SELECT MAX(salary), MIN(salary) FROM employees;
Posted by: Guest on May-09-2021
1

second max salary in sql

SELECT MAX(SALARY) 'SECOND_MAX' FROM EMPLOYEES
WHERE SALARY <> (SELECT MAX(SALARY) FROM EMPLOYEES);
Posted by: Guest on November-27-2020
0

how to find max and min salary in sql

SELECT MAX(SALARY) FROM EMPLOYEES
UNION
SELECT MIN(SALARY) FROM EMPLOYEES;
Posted by: Guest on November-27-2020
0

first max salary in sql

SELECT first-name
FROM employees
WHERE salary = (SELECT MAX(salary) FROM employees);
Posted by: Guest on January-28-2021
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
-1

max 3 salary in sql

SELECT salary, first_name, last_name FROM employees
ORDER BY salary DESC LIMIT 3;
Posted by: Guest on January-28-2021

Code answers related to "select max salary in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language