How will you delete duplicate records from a table?

Answer Posted / ajay kumar ande

question is wrong......records-----files,table-----rows
How will you delete duplicate records(rows) from a table?

pgm=sort
sortin dd dsn=-----
sortout dd dsn=-----
sysin dd *
sort fields=(2,3,ch,a)
sum fields=none ------>eliminates duplicate recs

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a db2 tablespace?

824


How does a cursor work?

786


I understand Join always perform better than subqueries. Then what is the advantage/use of Subqueries/correlated subqueries etc.,in DB2 programming.Please explain.

1883


What is image copy in db2?

789


How to create db2 table in mainframe?

894


What is db2 bind process?

982


How do you stop a db2 database in linux?

792


How do I add a column in db2?

837


What is dbrm? What it contains?

938


Explain in detail about buffer manager and its functionalities?

816


What is the reason behind not using select * in embedded sql programs?

879


What is with ur in db2?

1067


What is load utility in db2?

944


What are the prerogatives?

833


What is the physical storage length of time data type?

918