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?

Answers were Sorted based on User's Feedback



How do you eliminate duplicates?..

Answer / 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

How do you eliminate duplicates?..

Answer / guest

Let us consider table ‘B’ containing duplicates.


Create a empty table ‘A’ with set option and send the data
from table ‘B’ to table ‘A ‘so that only unique records will
be inserted. Now drop table ’B’ and rename table ‘A’ with
table ‘B’.

Is This Answer Correct ?    8 Yes 0 No

How do you eliminate duplicates?..

Answer / 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

More Teradata Interview Questions

If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

0 Answers  


If the table does not have duplicates then which utility you can suggest to load the data ?

3 Answers  


Briefly explain each of the following terms related to relational database management system (rdbms) – database, tables, columns, row, primary key and foreign key.

0 Answers  


In Teradata, how do we Generate Sequence?

0 Answers  


If the script is aborted. why it is aborted and how can you identify ?

1 Answers  


Differentiate primary key and partition key?

0 Answers  


Does anyone got Latest TERADATA V12 Certification Dumps for the below? TE0-121 , TE0-122 , TE0-123 , TE0-124 , TE0-125 , TE0-126 TE0-127 , TE0-12Q

45 Answers  


if collect stats but it show low confidence why?

0 Answers   IBM,


what is the advantages of other etl tool than teradata utilities or vice versa ?(datastage/informatica)

4 Answers  


Explain the parallel data extension in teradata?

0 Answers  


How do you see a ddl for an existing table?

0 Answers  


Explain the most common data types used in teradata?

0 Answers  


Categories