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

What are the functions of a teradata dba?

801


What are the different table types that are supported by teradata?

746


Explain BYNET.

774


Explain and compare pros and cons of snow flake schemas?

803


why use references rather than pointers in the public api, particularly for arguments which are modified?

751


How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.

4127


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

766


Why teradata is used?

769


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

1711


How is MLOAD Teradata Server restarted after execution?

899


What is the use of having index on table?

743


What are the different table types supported by teradata?

724


What is a three-tier data warehouse?

804


How to find duplicates in a table?

853


Can we collect statistics on table level?

795