Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How would you go about increasing the buffer cache hit ratio?

2542


Differentiate between unidentified receipt, unapplied receipts and on account receipts? : oracle accounts receivable

1727


Explain the process of recievables in oracle financials. : oracle accounts receivable

1107


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

1201


Where in the Oracle directory tree structure are audit traces placed?

2577


Differentiate between writeoff and receipt writeoff. : oracle accounts receivable

1262


What is Restricted Mode of Instance Startup in Oracle?

1143


What are the standard concurent programs for auto invoice interface and customer interfaces? : oracle accounts receivable

1009


Explain the difference between $ORACLE_HOME and $ORACLE_BASE.

7571


Why more redos are generated when the oracle database is in begin backup mode?

1073


What are different types of transactions in ar? : oracle accounts receivable

1220


while creating requisitions i am unable to see the list of organisation can anyone help me out ?

2099


TILL WHAT LEVEL OF SECURITY BO SUPPORTS?

3486


can u pls share responsibilities for production how to environment in odi?and how to generate report ?

2314


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?

2808