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
Define buffer pool.
How to rename a table in DB2 ?
What is cascading rollback?
What is host variable?
How can the firstname and the lastname from the emp table be concatenated to generate complete names?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What is db2 instance?
What is difference between rollback and commit?
What is db2? Explain.
Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....
what is the role of the cursor in db2?
How do I create a view in db2?
What is the use of value function?
Explain about open switch business continuity software?
How does a cursor work?