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 |
01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases
how to refer the data field?
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
how we rectify soc4 and soc7 error in project(need real time answer)? please reply
If a file has 1000 records.. if i have to replace the first and last characters of the file with another character. how it can be done....
How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.
What are the functions like c or c++ in cobol?
How to Write the RESTART Logic Using COBOL?
4 Answers GalaxE, L&T, Syntel, TCS,
should I use Go back in the main program ? Yes we can use Go back in main program as well.
What is Pic 9v99 Indicates in COBOL?
0 Answers SwanSoft Technologies,
Describe the cobol database components?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?