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

What is basic teradata query language?

632


Explain the types of join supports by teradata?

584


Give a justifiable reason why Multi-load supports NUSI instead of USI.

672


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

597


Highlight the advantages of PPI(Partition Primary Index).

559






What is smp and mpp platforms?

524


How you will check the version of teradata?

576


Define views in teradata with general syntax.

570


Why are oltp database designs not generally a good idea for a data warehouse?

592


What is teradata? Also, list out some of the primary characteristics of teradata.

577


What is meant by Teradata Gateway?

580


Can we collect statistics on multiple columns?

563


Can we have two time dimensions in a schema(either star or snow flake)? For ex if we want joining date of employee and if we want today's sales with time whether can we have two time dimensions for accommodating above tasks?

1614


What tools would you use for that?

565


What are the available primary index types in teradata.

583