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
Tell me the difference between clustered and non-clustered index?
How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database?
Explain cursor as data base object?
What is lock escalation? : sql server database administration
how to use DTS package in 2000,2005,2008 in sql server
What is db stored procedure?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
What is a cursor, index in sql?
What is the maximum size of a dimension? : sql server analysis services, ssas
Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you
Explain time data type in sal server 2008?
What are the differences between user defined functions and stored procedures?
What is difference between views and tables?
What is the difference between varchar and nvarchar?
explain databases and sql server databases architecture? : Sql server database administration