To find second largest salary in Employee table

Answer Posted / kuduba.r

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dirty read?

632


What are the two modes of authentication in sql server?

526


what are user defined datatypes and when you should go for them? : Sql server database administration

544


What is explicit mode in sql server?

536


What is the library index called?

594






Does sql server use java?

523


What are drilldown reports?

86


What is ssrs?

99


What are the different types of sql server replication? : sql server replication

630


what are the core components of SSRS?

92


Equi join and non equi join is possible with sql server?

489


Can a cursor be updated? If yes, how you can protect which columns are updated?

523


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

539


What happens if null values are involved in arithmetic operations?

590


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

538