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

I have a table which has thousand of records i want to
fetch only record num 100 to record num 200. Write a query
that satisfies this criteria.(Cant use any keys)
Anyone please reply ASAP!

Answer Posted / venkat

select * from table where empno > 100 or ( select * from
table where empno < 200)

Some many ways to write a query for this, this is one way...

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 copy pending and check pending in db2?

1040


What is db2 connect?

1124


On which levels locks can be applied?

1200


How can you classify the locks in db2?

1130


How would you find out the total number of rows in a db2 table?

1094


How to check sequence on a table in db2?

1111


Who uses db2?

1111


What are iseries servers?

1127


What is access path in db2?

1042


For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.

1156


What are the 2 sqlcodes that are returned?

1232


What is view db2?

1130


What is with ur in db2?

1382


What are packages in db2?

1071


What is the physical storage length of time data type?

1175