i have a table like this :
Name ADDRESS
Toto 123 ...
Toto 456
ToTo 678
I would like to delete 2 last row...please tell me how to
delete its
Answer Posted / prashant shettar
delete from (select rownumber() over() as rowid from tab1 )
where rowid = ( (select count(*) from tab1) - 1)
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
Can you use max on a char column?
What is difference between rollback and commit?
How do I connect my db2 database to ibm?
What is ibm db2 used for?
How do I copy a table in db2?
What type of database is db2?
Mention data types used in db2 ?
What is dbrm?
What do you mean by cursor?
How does coalesce work?
List out the three types of page locks that can be held.
How do I optimize a query in db2?
What is the clustering index in the db2 database?
What is copy pending status in db2?