How do you eliminate duplicates?

Answer Posted / yuvaevergreen

yes...the above option can be used if access has been
provided to create set tables.If not, partition by clause
can be used.
1. create table2 as table1 with no data;
2. insert into table2
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
where table1 is with duplicates and table2 would be target
table.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the types of join supports by teradata?

768


What are types of partition primary index (ppi) in teradata?

798


Syntax for case when statement?

813


What is partitioned primary index (ppi)?

800


How do you determine the number of sessions?

812


What is the use of stored procedures in teradata?

769


If Fast Load Script fails and only the error tables are made available to you, then how will you restart?

831


What are the available primary index types in teradata.

775


What are the functions performed by bynet?

801


Hi send me the Teradata dumps to my id rajeshanantha@yahoo.co.in Thanks Rajesh. A

3132


What are the components used in smp and massively parallel processing (mpp) machines?

821


In BTEQ, how are the session-mode parameters being set?

900


What is a node in teradata?

756


What are the steps involved after the disk manager passes the request?

806


Highlight a few of the advantages that ETL tools have over Teradata.

862