min and max salary and name in sql

Solutions on MaxInterview for min and max salary and name in sql by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "min and max salary and name in sql"
Noan
03 Sep 2016
1SELECT FIRST_NAME , SALARY
2FROM EMPLOYEES
3WHERE SALARY IN (SELECT MAX(SALARY)AS RESULT FROM EMPLOYEES
4UNION
5SELECT MIN(SALARY)AS RESULT FROM EMPLOYEES);