select the 3rd maximum salary from sql server database if 4
(just an example In practically I may not know the exact
situation) of the highest salaries are equal.

Answer Posted / jey ganesh

select min(sal) from employee where sal in(
select top 3 sal from employee order by sal desc)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose you want to implement the many-to-many relationships while designing tables. How would you do it?

541


Explain activity monitors

621


Write an SQL query to obtain the 2nd highest salary.

604


what's the maximum size of a row? : Sql server database administration

540


Explain candidate key, alternate key, and composite key?

588






Which trace flags are enabled in sql server?

520


i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

1374


What is the recursive stored procedure in sql server?

523


We need to perform what steps in the following order to work with a cursor?

709


How do I know if localdb is running?

509


What are various aggregate functions that are available?

504


What are the two modes of authentication in sql server?

518


What is a result set object returned by odbc_exec()?

546


What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

1607


How to perform backup for certificates in sql server? : sql server security

595