In my table having 3000 Records. How can I delete the 500th
row? (we don't know what is data inside the table)

Answers were Sorted based on User's Feedback



In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data ..

Answer / pratap

delete from table where ROWNUM = 500;
As per IBM notes ROWNUM is support feature in DB2.

Is This Answer Correct ?    0 Yes 0 No

In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data ..

Answer / suraj kumar pathak

SELECT * FROM (SELECT col1,col2,col3, rownumber() over() AS rn FROM tab1) as tr WHERE rn = 500;

Is This Answer Correct ?    4 Yes 5 No

In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data ..

Answer / venkata subbaiah

Delete from table where rowid=500;

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More COBOL Interview Questions

What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?

1 Answers  


What is rmode(24)

0 Answers  


How arrays can be defined in COBOL?

0 Answers  


Can we move X(7) to S9(7) COMP?

1 Answers  


In COBOL programming, what is PERFORM? What is VARYING?

0 Answers   CDC,


When and how can we use index & subscript ?

2 Answers  


i WANT ALL ERROR codes IN CICS and DB2

2 Answers  


why 02 level number can't be use as a separate level number like 01 or 77 ?

3 Answers  


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


What are the different rules for performing sort operation?

0 Answers  


In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?

5 Answers  


Categories