A Table has 10,000 records,How can i get latest 10 dates
from the table.so that i can only store those 10 records
in to my Resultset Object,to reduce load on my app?
Answer Posted / sonu
Answer of Ravikumar.s is almost write but there is slightly
mistake, he should write 'desc' keyword instead of 'asc'
because question for latest records not for the oldest
records. So, the correct answer is
select * from (select * from tablename order by datecolumn
desc) where rownum<=10;
One keyword makes the statement and result write or wrong
so, use these carefully.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How would you go about increasing the buffer cache hit ratio?
Differentiate between unidentified receipt, unapplied receipts and on account receipts? : oracle accounts receivable
Explain the process of recievables in oracle financials. : oracle accounts receivable
What is the importance of batch source set up in ar? : oracle accounts receivable
Where in the Oracle directory tree structure are audit traces placed?
Differentiate between writeoff and receipt writeoff. : oracle accounts receivable
What is Restricted Mode of Instance Startup in Oracle?
What are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable
Explain the difference between $ORACLE_HOME and $ORACLE_BASE.
Why more redos are generated when the oracle database is in begin backup mode?
What are different types of transactions in ar? : oracle accounts receivable
while creating requisitions i am unable to see the list of organisation can anyone help me out ?
TILL WHAT LEVEL OF SECURITY BO SUPPORTS?
can u pls share responsibilities for production how to environment in odi?and how to generate report ?
Hi, IN oracle apps HRMS, if the employee changes his department, and when a conconurrent program is run for calulating the pay, The latest Dept id is not diaplayed, howeber the previous deptid is considered. Please can someone tell me where is the program going wrong, which side?