To find second largest salary in Employee table

Answer Posted / amit

select max(salary) from employee where salary != (select max
(salary) from employee)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is transaction server isolation?

590


What are the difference between “where” and “having” clause in sql server?

593


Are semicolons required at the end of sql statements in sql server 2005?

578


What are the fixed server level roles? : sql server security

566


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

582






What is “asynchronous” communication in sql server service broker?

551


What does it mean to normalize data?

525


Explain about temporary stored procedure?

534


List the types of recovery model available in sql server?

507


Define self join?

635


How to use “drop” keyword in sql server and give an example?

692


How to insert multiple rows with a subquery?

534


What are the triggers in sql?

563


How you can find out if an index is useful to the optimizer?

501


what are the three command line utilities and what are their primary functions?

103