In my table having 100 Rec. How can I delete the 7th row??
(we don't know what is data inside the table)
Answer Posted / harsha
Use DELETE FROM TabName
The above command will delete all rows of the table with
out deleting the table.
Now if we want to delete 7th row and we don't know the
actual data in that row, then in that case we need to
create a new temporary result table, that contains only one
desired record which you want to delete.
Here are the steps.
1 Select only 7 row data.
2 Sort it in descending order(ORDER BY calue)
3 Select only first row
4 Now you have a result table with only 1 and desired record
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is innodb buffer pool?
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is dbrm? What it contains?
Explain the benefits you can get from mainframe connect?
What is the default page size of buffer pools?
What are the full forms of spufi and dclgen and why are they used?
Explain the function of data manager.
How do you find the maximum value in a column in db2?
What are the 2 sqlcodes that are returned?
What do you mean by storage group (stogroup)?
What is db2 bind process?
How to check sequence on a table in db2?
What is the difference between cursor and select statement?
What is the role of union all and union
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 .....