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
What is the difference between varchar and nvarchar?
What are the different SQL Server Versions you have worked on?
What is difference between getdate and sysdatetime in sql server 2008?
Does sql server 2016 have ssms?
What is stored in the mssqlsystemresource database? : sql server database administration
What are cursors in ms sql server?
What is the default server name for sql server?
What is impersonation? What are the different impersonation options available in ssas? : sql server analysis services, ssas
What is use of dbcc commands?
what type of index will get created after executing the above statement? : Sql server database administration
What is a db view?
Write the syntax for stuff function in an sql server?
What is inner join? Explain with an example?
What are the types of stored procedures in an sql server?
What is database black box testing?