I Have Employee table having column name as ID,SALARY
how to get second max salary from employee table with id
ex
ID SALARY
1 20000
7 37000
2 5000
Answer Posted / belson gnana pradeep
Select Top 1 salary from (Select TOP 2 salary from tbl_salary order by salary desc)a order by salary
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is named calculation? : sql server analysis services, ssas
What do you mean by acid?
How do you make a trace?
What are the five characteristics of good data?
What does select 1 mean?
What is db stored procedure?
Do you know what is rank function?
Explain the first normal form(1nf)?
What happens if ntwdblib.dll is missing on your machine?
What are the dmvs? : sql server database administration
how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration
What are “phantom rows”?
what exactly sql injuction.how to overcome.....
Find first and last day of current month in sql server
How display code or Text of Stored Procedure using Sql query in Sql Server ?