How do you eliminate duplicates?

Answer Posted / tdguy

Adding to the above,if enough spool space is available, 1.
create a volatile table with the same structure 2. insert
into volatile table
sel column1,column2,,,columnn from table1 group by 1,2
qualify row_number() over (partition by
column1,column2,,,columnn order by
column1,column2,,,columnn desc) =1
3. delete from target table and insert from volatile table.
All the above steps should be done with the same session.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you fastexport a field, which is primary key by putting equality on that key?

707


Explain the term 'primary key' related to relational database management system?

597


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

1602


What is teradata and why it is used?

581


What are the available join types in teradata?

596






What are the uses of bynets in multi-node systems?

584


What do high confidence, low confidence and no confidence mean in explain plan?

587


What are the main components of teradata system?

580


How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .

1275


What do you mean by teradata sql assistant?

586


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

367


How to find duplicates in a table?

609


What is a sparse index?

627


Which is faster fastload or multiload?

593


What are the different design perspectives used in teradata?

548