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 dclgen (declaration generator)?
How to find schema of a table in db2?
If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2
What is explain in db2?
What is scrollable cursor in db2?
On which levels locks can be applied?
What does runstats do in db2?
What is the difference between spufi and qmf?
How to find the number of rows in a db2 table?
How is deadlock resolved?
What is null value in db2?
What is a buffer in memory?
Explain the contents that are a part of dclgen.
What is the advantage in De-normalizing tables in DB2?
What is drop table?