Answer Posted / ramesh mopuri
okay above queries are fine
but in a table there are 99 salaries, so i want to pick the
50th highest salary is it possible to wright the query same
above for the get 50th high salary. absolutely not. see my
query for the get Nth salary in a table.
Select ename,sal,deptno from emp a
where &n=
(select count(distinct(sal))from emp b
where a.sal<=b.sal)
order by deptno;
after enter this query the system ask N value and give 50
the result will be shown 50th highest salary. Please reply
me whether its working or not.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?
Can you have more than one content canvas view attached with a window ?
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?
How to create id with auto_increment on oracle?
Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.
11. Display the client number and name and the client number and name of the person who referred that client.
How to display row numbers with the records?
what are bitmap indexes? How does they work?
How to put more than 1000 values into an oracle in clause?
How to create a new oracle data file?
In what script is snap$ created? In what script is the scott/tiger schema created?
What is the simplest tool to run commands on oracle servers?
Can a formula column referred to columns in higher group ?
What is null value in oracle?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...