How to find 6th highest salary from Employee table ?
Answer Posted / rahul gupta
select sal from employee e1 where 5 = (select count(*) from
employee e2 where e1.sal < e2.sal)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is store procedure? How do they work?
Can another user execute your local temporary stored procedures?
what is a correlated sub-query? : Sql server database administration
How to list all login names on the ms sql server?
How to delete duplicate rows from table except one?
How to use old values to define new values in update statements in ms sql server?
Do you know concepts and capabilities of sql server?
What is difference between line feed ( ) and carriage return ( )?
What do you know about system database? : SQL Server Architecture
How to find index size for each index on table?
List types of tables in SQL Azure?
How to apply cascading referential integrity in place of triggers?
What is the difference between a stored procedure and a user defined function?
What are the differences between local and global temporary tables?
Differentiate between a primary key and a unique key.