how to check the 3rd max salary from an employee table?
Answers were Sorted based on User's Feedback
Answer / manish_patil
select sal from emp_sal where rownum = 3 order by sal desc
Is This Answer Correct ? | 6 Yes | 9 No |
Answer / tushar
select max(sal) from ( select sal from emp group by sal order by sal) where rownum<4;
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / nagendra
select min(sal) from emp where sal in( select top 3 sal
from emp order by sal desc)
Is This Answer Correct ? | 2 Yes | 6 No |
What is a join?
What is the use of partition by in sql?
can sql servers linked to other servers like oracle? : Sql dba
how to get help information from the server? : Sql dba
What company owns postgresql?
When we can declare a column as Unique and Not Null both at the same time. What is the use pf Primary Key then?
2 Answers Accenture, Unisoft Infotech,
how to run 'mysql' commands from a batch file? : Sql dba
How many developers work on postgresql?
How can you select unique records from a table?
Can we have two clustered index on a table?
Why is a primary key important?
how i do the database testing of online money transactions between two parties (client and organization). suppose our company makes a website for our client and give a extra feature of online money transaction with there clients then how i test this feature in database testing