Answer Posted / rashmiraj
SELECT COL1,COL2,ROWNUM
FROM (SELECT COL1,COL2 FROM TABLE ORDER BY COL1 DESC)
WHERE ROWNUM<=&A;
as for example........
select ename,job,sal,rownum
from (select ename,job,sal from emp order by sal desc)
where rownum <=3;
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
Explain about the procedures that are compulsory in the case of procedures?
Explain Rule based optimization in oracle apps?
Define ad-hoc reports?
How to enable tracing for document managers
Can you use concurrent program "gather schema statistics" to gather stats on sys schema in oracle apps?
Define autonomous transaction?
What is oracle apps (erp)?
What are cycles of ar?
Explain the uses of fsg?
What is mrc? Explain its uses
Define multi org ?
What is the firing sequence related with report triggers?
Explain about security attributes?
Define about profile option?
What are the steps in attaching reports with oracle applications?