please tell me the query to get details of the employee
having the second largest salary

Answer Posted / eswar

select max(salary) from emp
where salary<(select max(salary) from emp)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the High-Availability solutions in SQL Server and differentiate them briefly?

690


What are clustered and non-clustered index?

539


Why do you want to join software field as you have done your BE in Electronics?

1690


explain different types of constraints? : Sql server database administration

502


How do I create a trace in sql server?

507






What are number line correlation administrators will use while working with a subquery?

612


Is port 1433 secure?

527


How to deploy the Report?

93


What is the use of =,==,=== operators?

560


Is the primary key column of a table an index in ms sql server?

523


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

540


Explain ranking functions?

593


Explain contrast amongst grouped and non-bunched records?

503


What do you understand by hotfixes and patches in sql server?

504


What is a field name?

503