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 want to fetch the 10th row of a table which has been
changed.How can I do it without going thru all the rows.

Answers were Sorted based on User's Feedback



I want to fetch the 10th row of a table which has been changed.How can I do it without going thru ..

Answer / m4io

DECLARE cursor_name sensitivity SCROLL CURSOR FOR
SELECT ... FROM ...

FETCH ABSOLUTE 10 FROM cursor_name

Is This Answer Correct ?    6 Yes 0 No

I want to fetch the 10th row of a table which has been changed.How can I do it without going thru ..

Answer / divya,roshini,tiny

use scrollable cursor for fetching the 10th row

Is This Answer Correct ?    4 Yes 0 No

I want to fetch the 10th row of a table which has been changed.How can I do it without going thru ..

Answer / andyb

Why?
How do you know the one you want is still the 10th row ?
Other updates may have taken place.

If you know the key for the record you want then use that

Otherrwise unless the table has a sequential numeric key
then I think you have to go through the rows.

Is This Answer Correct ?    3 Yes 1 No

I want to fetch the 10th row of a table which has been changed.How can I do it without going thru ..

Answer / nadeem

Use any one column name and its value of the 10th row to
fetch the 10th..for eg
select * from Table where deptno = 0010(any column name and
its value of 10 row)

Is This Answer Correct ?    1 Yes 5 No

I want to fetch the 10th row of a table which has been changed.How can I do it without going thru ..

Answer / satish.klnm

exec sql
select * from table222 where count(*) > 9
end-exec.

Is This Answer Correct ?    0 Yes 14 No

Post New Answer

More DB2 Interview Questions

How do you stop a db2 database in linux?

0 Answers  


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

0 Answers  


What is the database descriptor?

2 Answers  


Is db2 a database?

0 Answers  


How to find the number of rows in db2 tables?

0 Answers  


in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert

1 Answers   TCS,


What are the disadvantages of using VARCHAR?

3 Answers  


Q1. How will you use two different DB2 qualifiers in a single COBOL program? Suppose we have 2 tables EMP1 and EMP2 with same structure defined in two different DB2 qualifiers QUAL1.EMP1 and QUAL2.EMP2 now during first 15 days we want to use QUAL1.EMP1 and rest of the days QUAL2.EMP2  how will we do this.  We can create a single program and a single load for this program. 

2 Answers   RBS,


Describe what a storage group(STOGROUP) is?

2 Answers  


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


Outputs of explain are with matchcols = 0. What does this signify?

0 Answers  


What is alias in db2?

0 Answers  


Categories