how to find nth highest salary
Answer Posted / ravindra babu
select sal from (select sal from(Select distinct sal from
EMP order by sal desc)Where rownum <=2 order by sal asc)
Where rownum=1;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we insert data if clustered index is disabled?
How to create a dml trigger using create trigger statements?
How to encrypt data between dialogs?
What is indexed view?
How we create SQL Server 2005 Reporting Services ? Give me Sample
What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.
What is a transactions?
What is the federation in sql azure?
Tell me what is the difference between locking and multi-versioning?
What happens if you add a new index to large table?
Explain various data region available in ssrs with their use?
What are out-of-range errors with date and time literals?
What is dml command?
What is trace flag in sql server?
What is indexing and its types?