What is the SQL query to select, delete and get count of
duplicate rows in DB2?
Answer Posted / hkhatri27
SELECT Columns
FROM Table
GROUP BY Columns
HAVING COUNT(*) > 1;
~ Himanshu
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
run jcl for cobol+db2 pgm?.. //jobcard //step001 exec pgm=ikjeft01 //systin dd * DSNSYSTEM(--------) RUN PROGRAM(MYPGMNAME) PLAN(-----), LIB(-------), PARMS(------) /* WHAT WILL U GIVE INSIDE THE BRACKETS... WHAT IS PLAN,PACKAGE,BIND?..PLAN N PACAKGES ARE GENERATED BY ?...
What's The Error Code For Unique Index Voilation?
How do I import data from excel to db2?
What is performance tuning db2?
How does a cursor work?
How to get the ddl of a table in db2?
What db2 400?
What is image copy in db2?
What is drop table?
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
What is the purpose of rollback and commit?
What are bind parameters in db2?
What is db2 instance?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
What is meant by union and union all?