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
Define mrc ( multiple reporting currency)?
What is fsg? Explain its uses.
What is user exits
what does 'unfreezing rollup groups' do?
How to register concurrent program with oracle apps?
What are cycles of gl, ap, and ar?
What is a token?
What is the menu?
Explain the uses of fsg?
What is a datalink?
Define application top?
Is there any possibility for having custom schema at any time when it is required?
What is multi org architecture?
How to attain parameter value depending on the first parameter?
Explain the types of flexfields?