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...

if there is a table with huge number of records and if i
want to extract only first 3 records from the table, what
query i have to provide to retreive first 3 records

Answer Posted / viji

If there is any specific order they have to be fetched then use fetch first 3 records only.
Without order by, fetch first 3 records only will retrieve any 3 records in random order.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is drop table?

1067


before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

2222


What are foreign keys in db2?

1170


What is the reason behind not using select * in embedded sql programs?

1166


What are the various isolation levels possible?

1179


What is page size in db2?

1025


How can deadlocks be resolved?

991


What is a trigger in the db2 database?

1141


what is the role of the cursor in db2?

1110


Explain what are the various isolation levels possible?

1097


How to get the ddl of a table in db2?

1168


What is performance tuning db2?

1109


How to find the maximum value in a column in the db2 database?

1126


Mention the location where the output received from explain statement is stored.

1172


What is dbrm in db2 database?

1194