To find second largest salary in Employee table

Answer Posted / saravanakumar

SELECT MAX(SALARY) FROM EMPLOYEE WHERE SALARY NOT IN
(SELECT MAX(SALARY) FROM EMPLOYEE)

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is spatial nonclustered index

552


Which sql server is best?

524


What is 'Join' and explain its various types.

635


What is explicit mode in sql server?

542


Write a query to find 5th highest amount paid from the customer table.

544






What happens to a trigger with multiple affected rows?

536


Why use cursor in sql server?

560


What is the purpose of the model database?

607


What is the use of builtinadministrators group in sql server? : sql server security

545


How do I find the sql server database version?

538


What are the disadvantages of primary key and foreign key in SQL?

638


What is the default port for SQL Server over a firewall?

599


What is code near application topology?

199


How fixed length strings are truncated and padded?

563


How do you debug a procedure in sql server?

504