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 |
Once reports are delivered to client, how will they inform back? If they are experiencing any problem in the reports.
what is cognos architechure
Usage of Stored Procedures in Cognos
1 Answers General Motors GM, TCS,
what is the difference between count and running-count functions?
----------0Diff b/w Report Functions and Database functions?
How do we create row level security in cognos8?
-------------How you design DWH?
what are typees of dimensions
4. How many dimensions did you use in your reports?
i have taken quantity on ANx-axis & months on y-axis(months r not in oreder )when i run the reoprt i need months in proper order .how can i do this ?
What is Tool Tip? and how to create in report studio?
How to Improve the Performance of the Report? i need this urgently .