|
EMP |
ID |
Name |
Country |
Salary |
1 |
Vijay |
India |
6000 |
2 |
Bill |
USA |
8000 |
3 |
Kris |
France |
3000 |
|
SELECT * FROM EMP WHERE SALARY IN(
SELECT MIN(Salary) FROM EMP WHERE SALARY IN(
SELECT DISTINCT
---- to find 2nd Highest Salary(You may Change it, TOP x)
TOP 2
SALARY FROM EMP
ORDER BY SALARY DESC ))
|
Output |
ID |
Name |
Country |
Salary |
1 |
Vijay |
India |
6000 |
|