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
Explain the use of table functions.
8. Supporting AP, AR and GL?
1.In a table Gender is a column in that male and female are the two data.In a single statement i have to modify all male to female and all female to male vice versa. 2.In a single query i need the count of male data,count of female and total count
Differentiate between standard remittance and bills receivable remittance : oracle accounts receivable
Could you please let me know the interfaces in OM / FA??
What do you mean by hz_ in customer tables? : oracle accounts receivable
What is auto invoicing? : oracle accounts receivable
which gives Oracle R12 Financial training in delhi please give me answer its urgent?
What is the difference between oracle media recovery and crash recovery?
what are basic modules required to implement oracle application in any oraganisation?
What is mrc and what is its use? : oracle accounts receivable
what are all the conversion and interfaces in GL,AP,AR,HRMS with example? otherwise send send link for these
What are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable
What is the sql query to find the employee who has Nth maximum salary?
can u pls share responsibilities for production how to environment in odi?and how to generate report ?