How will you delete duplicate records from a table?
Answer Posted / king
DELETE FROM FILE WHERE FIELD = ALL(SELECT FIELD FROM FILE
GROUP BY FIELD HAVING COUNT(*) > 1)
OR
DELETE FROM FILE WHERE FIELD = ANY(SELECT FIELD FROM FILE
GROUP BY FIELD HAVING COUNT(*) > 1)
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What are the various isolation levels possible?
Explain dclgen.
What is access path in db2?
List down the types of triggers in the db2 database?
What is check constraint. Explain with example.
What is a db2 collection?
What is package in cobol db2?
How to rename a table in DB2 ?
Comment whether the cursor is closed during commit or not.
Why do we use cursor?
What is db2 bind process?
What is consistency token in db2?
What is cursor stability in db2?
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
What is the use of value function?