Write a SQL query which should fetch the 5th maximum salary
of an employee from the table?
Answers were Sorted based on User's Feedback
Answer / prashant
SELECT min(salary)
from emp
where salary in (select distinct top 5 salary from emp
order by salary desc)
Is This Answer Correct ? | 1 Yes | 3 No |
Answer / vsandhyana
select top 1 * from (select top 5 * from customers order by
salary desc) a order by salary asc
Thanks
Vikram Sandhyana
Is This Answer Correct ? | 0 Yes | 3 No |
Answer / rakesh
select rownum as rank,name,sal
from
( select name,sal from employees order by sal desc)
where
rownum=5
Is This Answer Correct ? | 3 Yes | 7 No |
Answer / pavan kumar
select * from emp e where 5=(select count(distinct sal)
from emp e where e.sal<=sal)
Is This Answer Correct ? | 3 Yes | 8 No |
how do you deploy a report in cognos 8 to run in maximo6? what r the steps in maximo??
how u will design the report if the objects are available
advantages of cascade prompt ???
What are all types of Batches?
What is model filter and query filter?
How you drill from powerPLay to Impromptu?Explain all Steps?
How can we Maintain the Cube Security by Category level and Dimension level ?
What is the difference between List and Cross tab? Could some on explain with an example..
What is use of Field Set present in toolbox?
what is the difference between querystudio in reportnet and cognos8
suppose if u r report having 1000 tables i want to dispaly alternate rows means 1,3,... how we specify that pleaes ans me
What is slowely changing dimensions?why we are used SCD?