how to find the second salary?

Answer Posted / raja

select top1 salary from(select distinct top2 salary from
table name order by salary desc)a order by salary

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain why variables called the most powerful component of ssis?

538


What is transact-sql language?

578


What is delete query?

524


Do you know what are the reporting services components?

535


What happens if the update subquery returns multiple rows in ms sql server?

593






Will the writetext statement activate a trigger?

571


What is the difference between cube operator and rollup operator? : SQL Server Architecture

628


Why should you use or avoid select * statements?

578


What are “lost updates”?

617


What are the security related catalog views? : sql server security

538


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

520


How to add additional conditions in SQL?

590


What is database black box testing?

609


What is equi join with example?

557


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

542