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 / ranjan satapathy

Your query: to get latest 10 dates from the table

select date_column , *
from table
where date_column between sysdate and (sysdate-10)

will show the latest date upto 10 last day

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by hz_ in customer tables? : oracle accounts receivable

644


what is semphore explian it?

2247


What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f

3994


Is there any link between pr form(purchse requisition)and po form(purchase order)

2145


QUESTION IS THAT DURING UPLOADING DATA IN PROD SERVER,OUR EQUIPMENT TAG NUMBERS ARE NOT MATCHING WITH SAP TAG NUMBERS SO DUE TO THIS WE ARE FACING PROB, BECAUSE WHENEVER ALARM IS COMING FROM SCADA DUE MISMATCH THE NOTIFICATION IS NOT CREATED IT IS GIVING ERROR. PLEASE SUGGEST THE METHOD SO THAT THE TAG NUMBERS OF BOTH (SCADA EQUIPMENT AND SAP EQUIP) SHOULD CONCIDE.OTHERWISE WE HAVE TO GO FOR LONG PROCESS EITHER BY INTERFACE TABLE OR BY EXPORTING ALL DATA AND MAKING RIGHT CHANGES.DO YOU HAVE ANY SHORTCT METHOD PL WRITE ME. THANKS

1647






What is the importance of batch source set up in ar? : oracle accounts receivable

716


Differentiate between earned discounts and unearned discounts? : oracle accounts receivable

670


difference of using cursor for loop and open,fetch,close.which one is better

1254


What is autocashrule set? : oracle accounts receivable

740


HOW TO SAVE UNIVERSES AND DOCUMENTS IN THE REPOSITORY?

1591


What is auto invoicing? Explain : oracle accounts receivable

616


Are These Dff's Flexible?

737


what is difference between inner join & nested query or subqueries

2487


What is the use of transaction flexfield in autoinvoice? : oracle accounts receivable

691


What view would you use to determine free space in a tablespace?

1783