How to find 6th highest salary from Employee table ?
Answer Posted / maheswar reddy s
select * from Employee e1 where 6=(select count(distinct(salary))from employee e2 where
e2.salary>=e1.salary)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to call a stored procedure within a stored procedure?
How to choose all records from the table?
Is the order of columns in the set clause important in ms sql server?
What is the default fill factor value?
What are the difference between “where” and “having” clause in sql server?
Explain sql delete command?
Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What is a user-defined function in the sql server and what is its advantage?
what stored procedure can you use to display the current processes? : Sql server administration
What are different types of join?
What are the source of constraints?
Do you know the capabilities of cursors?
What is a raid and what are different types of raid configurations?
How to backup SQL Server Reporting Services ?
While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?