ABC Teradata Faltu

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

To Find Nth Highest Salary from the employee table department wise

Select *
from employee emp1
where 2 = (
select count(distinct salary)
from employee emp2
where emp2.salary >= emp1.salary
and emp1.deptNo = emp2.deptNo )

You might also like