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
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 |
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 |
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
what is the difference between Plan & package
where will we code call by content and call by reference dude pls reply soon ?
What should be the sorting order for SEARCH ALL?
wht is load module and object module ?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
Can we move SPACES to numeric field and ZEROES to alphabetic field? If yes what are the way doing this?
What are various search techniques in cobol? Explain.
What type of SDLC u followed? Why?
Can the OCCURS clause be at the 01 level?