Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

1145


Let us say there is a file that consists of 100 records out of which we need to skip the first and the last 20 records. What will the code snippet?

1174


What are the enhanced features in teradata v2r5 and v2r6?

1111


What is called partitioned primary index (ppi) and discuss the advantages of using it in a query?

999


What is the purpose of upsert command?

1148


Difference between stored procedure and macro?

1149


How to load specific no.of records using bteq, or fastload,or multiload

1726


If a Node is busy what are the steps you can take to avoid ?

2398


what are the uses of fact table and dimension table in banking project?

4540


What is the use of stored procedures in teradata?

985


Explain and compare pros and cons of start schemas?

1041


What are the commands to make a new table, change a table and remove a table in teradata?

1110


What is the function of parser component in teradata?

1065


What are the functions involved in shared information architecture?

1056


What is the difference between union and union all in teradata?

1104