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
Which component is responsible for processing sql statements and selecting access paths?
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
What kind of database is db2?
i tried to copy some records from microsoft excel to as-400 physical file through "Bosanova" emulation. Out of 14000 records only 12000 records copies and subsequently programe started to hang. Then, i closed the program forcefully. I did' under stand the problem. Also when i try to compile the physical file it is showing as "The file in use". How to overcome this problem?
How to run db2 command in windows?
Explain about rct in db2?
What is declare cursor?
What is the difference between cursor and select statement?
Which are the db2 tools to protect integrity of the database?
What are the various data types available in db2?
What is syscat in db2?
What is the maximum No of rows per page?
What is commit in db2?
What are catalog tables in db2?
What is the difference between bind and rebind in db2?