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 the different normalization forms?
How would you use user_constraints table in DB?
What should be the fill factor for indexes created on tables? : sql server database administration
How to receive output values from stored procedures?
What is an example of a foreign key?
What do you understand by recursive stored procedure?
What are user-defined functions (udfs) in sql server?
Explain having clause?
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
What does executeupdate return?
What is the security principal at the server level that represents your session?
Define a cross join?
Is sql server a database?
Explain how you can configure a running aggregate in SSRS?