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 / your name
Forget everything...Here it goes..in a simple way...
Select salary from tbl_name a where
n = (Select count(distinct(count(*))) from tbl_name b
where b.salary>=a.salary)
Substitute you value for n. thats all.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the maximum size of a dimension? : sql server analysis services, ssas
What encryption security is available in sql azure?
Why I can not enter 0.001 second in date and time literals in ms sql server?
What happens when the SQL Azure database reaches Max Size?
Mention the different types of replication in sql server.
What is an inner join?
Can We Use Data-grids For Our Report In Ssrs?
What is the use of keyword with encryption. Create a store procedure with encryption?
Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?
Write a query for primary key constraint with identity key word?
Define magic tables in sql server?
Explain syntax for viewing, dropping and disabling triggers?
if no size is defined while creating the database, what size will the database have? : Sql server administration
What are the default system databases in sql server 2000?
What is normalization and denormalization in sql server?