Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

min and max salary and name in sql

SELECT FIRST_NAME , SALARY
FROM EMPLOYEES
WHERE SALARY IN (SELECT MAX(SALARY)AS RESULT FROM EMPLOYEES
UNION
SELECT MIN(SALARY)AS RESULT FROM EMPLOYEES);
 
PREVIOUS NEXT
Tagged: #min #max #salary #sql
ADD COMMENT
Topic
Name
4+2 =