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

Explain what is the function of sql server agent windows service?

536


How to retrieve error messages using mssql_get_last_message()?

519


What will be the maximum number of indexes per table?

523


What is query cost in sql server?

544


What is an example of a foreign key?

501






What is normalization of database?

593


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

3741


What is read uncmmited?

571


What are some examples of schemas?

524


What is precedence constraint?

535


Determine when an index is appropriate?

551


How to create a new table in a given schema?

649


Why do we use functions?

503


Differentiate between a primary key and a unique key.

585


What is rtm version in sql server?

519