please tell me the query to get details of the employee
having the second largest salary

Answer Posted / sushil

select min(a.standardcost) from
(
select distinct top 2 StandardCost
from Production.ProductCostHistory
order by standardcost desc
)a

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can i Relate Tables in SSIS

805


what is a sub-report?

113


How to sort the query output with order by clauses in ms sql server?

815


Explain what are the authentication modes in sql server?

678


What are user-defined functions (udfs) in sql server?

731






What is difference between table aliases and column aliases? Do they affect performance?

707


What are the different authentication modes in sql server?

803


What is difference between sql and sql server?

689


How to access the deleted record of an event?

743


Explain the advantages of merge replication?

680


How to use subqueries with the exists operators in ms sql server?

798


Is there any difference between the primary key and unique key?

745


How dts is used to extract, transform and consolidate data?

789


How to run queries with sql server management studio express?

756


New concepts of sql server 2005 use in your project.

2094