can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / preeti chauhan
CREATE TABLE T1(SALARY int, [NAME] varchar(50))
SELECT TOP 1 SALARY FROM (SELECT TOP 2 SALARY FROM T1 ORDER
BY SALARY DESC)T1 ORDER BY SALARY
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What are cursors in ms sql server?
Is mysql better than sql server?
What is repeatable read?
How to delete an existing database user?
What are types of subqueries?
What is the syntax to execute the sys.dm_db_missing_index_details?
When does a workload on SQL Azure get throttled?
How would you choose between a clustered and a non-clustered index?
What is the difference between varchar and nvarchar datatypes?
Describe in brief sql server monitoring ways.
Define self join in sql server joins?
Define cursor locking
What is the use of sql profiler in sql server 2012?
How do you create an execution plan?
List the types of recovery model available in sql server?