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 / mvramesh

How about combingin two queries with set operator EXCEPT,
if you have query A EXCEPT query B, the result would be A-B.

Select * from table A fetch first 200 rows only
Union except
Select * from table A fetch first 100 rows only

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I copy a table in db2?

1001


Mention some fields that are a part of sqlca.

1035


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

1197


What is a bind in db2?

1043


What is db2 and what is the use of db2 optimizer?

1069


What is runstats and reorg in db2?

1305


How does cobol compile db2 program?

1064


What is runstats utility in db2?

1021


Explain correlated sub-queries.

1034


What is reorg?

1162


What is coalesce in db2?

1136


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

1186


If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

2045


Which component is responsible for processing sql statements and selecting access paths?

1130


What is performance tuning db2?

1064