How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database
plz mail the answer @ mak2786@gmail.com
Answer Posted / ashish kumar
To find nth maximum salry
Select salary from tbl_name a where
n-1=(Select count(distinct(count(*))) from tbl_name b
where b.salary>a.salary)
| Is This Answer Correct ? | 10 Yes | 20 No |
Post New Answer View All Answers
How use inner join in sql server?
How do you use a subquery to find records that exist in one table and do not exist in another?
How many primary keys are possible in a table?
What is use of attribute hierarchy ordered ? : sql server analysis services, ssas
What is data set in report?
What are the differences between stored procedure and view in sql server?
What are the benefits of filtered indexes?
How to create an inline table-valued function?
Which are the two editions in which SQL Azure database available?
Explain syntax for viewing trigger?
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that
what is a default tcp/ip socket assigned for sql server? : Sql server database administration
How to create a local temporary stored procedure?
What happens when unicode strings concatenate with non-unicode strings?