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 runstats db2?

583


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

628


What is the latest version of ibm db2?

737


What is difference between alias and synonym in db2?

643


Which are the db2 tools to protect integrity of the database?

690






What is the difference between nvl and coalesce?

600


What is a db2 table?

597


Explain what are the various isolation levels possible?

610


What is temporal table in db2?

601


How do I start db2 in windows?

563


have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1236


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

6250


What is the purpose of using commit?

616


How to find schema of a table in db2?

570


Explain in brief how does db2 determine what lock-size to use?

595