employer cover photo
employer logo
employer logo

Tata Consultancy Services

Fait partie de Tata Group

Employeur impliqué

Question d’entretien chez Tata Consultancy Services

Write a query to find second highest salary.

Réponses aux questions d'entretien

Utilisateur anonyme

15 nov. 2017

select max(salary) from tablename where salary<(select max(salary) from tablename);

Utilisateur anonyme

15 nov. 2017

select max(salary) from tablename where salary < (select max(salary) from tablename);

Utilisateur anonyme

15 nov. 2017

select max(salary) from tablename where salary (is less than)(<) (select max(salary) from tablename);