What is the SQL query to select, delete and get count of
duplicate rows in DB2?
Answer Posted / igor kramov
DELETE FROM (
SELECT ROWNUMBER() OVER (PARTITION BY c1, c2 ORDER BY c3
DESC) AS rnum FROM t1)
WHERE rnum > 1 ;
the same is for Select\Count
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What kind of database is db2?
is it compulsory commitment control in journal?
What is the syntax for seeing the columns and data types of a table in the db2 database?
What r the comman abends in db2, jcl and cobol???????
How do you concatenate the firstname and lastname from emp table to give a complete name?
How to create backup table in db2?
What is concurrency?
What are the benefits of using the db2 database?
How to run db2 command in windows?
What is the information associated with sysibm.syslinks table?
How do I import data from excel to db2?
What is bind plan?
What is db2?
What is the advantage in De-normalizing tables in DB2?
What is the difference between db2 and oracle?