GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Data Warehousing  >  DataStage
Go To First  |  Previous Question  |  Next Question 
 DataStage  |  Question 22 of 390    Print  
How do you eliminate duplicate rows?

  
Total Answers and Comments: 5 Last Update: December 29, 2008   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 07, 2005 09:19:52   #1  
Pavan        

RE: How do you eliminate duplicate rows?
Data Stage provides us with a stage Remove Duplicates in Enterprise edition. Using that stage we can eliminate the duplicates based on a key column.
 
Is this answer useful? Yes | No
July 15, 2005 08:30:58   #2  
Gokul tendulkar        

RE: How do you eliminate duplicate rows?
The Duplicates can be eliminated by loading thecorresponding data in the Hash file. Specify the columns on which u want to eliminate as the keys of hash.

 
Is this answer useful? Yes | No
August 15, 2005 20:30:49   #3  
Mujeebur        

RE: How do you eliminate duplicate rows?
removal of duplicates done in two ways:
1. Use Duplicate Data Removal stage
or
2. use group by on all the columns used in select duplicates will go away.

 
Is this answer useful? Yes | No
May 05, 2008 06:55:39   #4  
madhava1238 Member Since: May 2008   Contribution: 8    

RE: How do you eliminate duplicate rows?
sql: delete from tablename a where rowid>(select min(rowid) from tablename b) where a'key values b.key values.
datastage server:using sort stage(option:allow duplicates(yes/no))
or hash file

parallel: remove duplicate stage

Regards
Madhava

 
Is this answer useful? Yes | No
December 29, 2008 06:00:37   #5  
tisha24 Member Since: September 2008   Contribution: 10    

RE: How do you eliminate duplicate rows?
In server jobs we can make use of HASH FILE stage to eliminate the duplicate rows.

In parallel jobs we can use REMOVE DUPLICATE stage to eliminate the duplicates.
we can also use sort stage to eliminate duplicate records.

(NOTE : But its advisible to remove the duplicate records at the databases using query. any way its depends the requirement too)

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape