To find second largest salary in Employee table

Answer Posted / vikas kant

select Top 1 salary from emp_Table where salary in(select
Top 2 Salary from emp_Table order by salary desc)

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps to take to improve performance of a poor performing query? : sql server database administration

598


What happens if we shrink log file in sql server?

514


Explain what are the events recorded in a transaction log?

550


What is the difference between TRUNCATE and DROP?

627


How to write character string constants or literals in ms sql server?

536






What is trigger and different types of Triggers?

571


What is the usage of the sign function?

526


What are the differences between left join and inner join in sql server?

580


Explain system functions or built-in functions? What are different types of system functions?

561


What is the stored procedure?

557


What is subreport?

96


what are the core components of SSRS?

92


What are the advantages of log shipping?

561


Can sql servers link to other servers?

557


Explain database normalization?

645