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

Is db2 a programming language?

786


Is ibm db2 open source?

800


What is bind plan?

796


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

966


What are the various isolation levels possible?

838


What are concurrency issues?

801


What is isolation level in db2?

751


Define predicate?

852


How is the value function used?

823


Is db2 a database?

730


What does runstats do in db2?

767


can we view the access paths created by dbrm ? how ? thx

6635


What do you mean by between and in? Is between inclusive of specified range values?

863


How to rename a table in DB2 ?

809


What is rebind in db2?

765