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 physical storage length of time data type?
What is drop table?
Define db2 and its databases?
what are bind concepts in db2 cobol?
What is multi row fetch in db2?
What is the syntax for FETCH in DB2 ?
Define predicate?
What is blu acceleration in db2?
What is reorg and runstats in db2?
How can record locking be achieved in those DB2 versions which do not support it?
What is dpf in db2?
What is db2 look?
What do you mean by between and in? Is between inclusive of specified range values?
When reorg is used?
What is the role of data manager in the db2 database?