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 record group?
What is the firing sequence related with report triggers?
Explain the types of user exits?
What are cycles of ar?
Define fsg ( financial statement generator) ?
What is the usage of the spawned object?
How to register concurrent program with oracle apps?
How to enable tracing for document managers
How will you open a bc4j package in jdeveloper?
Define the steps for customizing form?
Explain the mechanisms to trace the document manager?
Define set – of books?
I want to setup additional organizations, do I have to setup multiorg?
What is flexfield?
Is there any documentation on how to setup an organization?