GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Tech FAQs  >  Abinitio

 Print  |  
Question:  Avoid Duplicates

Answer: How to avoid duplicates without using dedup component?


November 11, 2009 09:29:24 #3
 Mihira Barik   Member Since: September 2009    Total Comments: 3 

RE: Avoid Duplicates
 

We can avoid duplicate by using "key_change" method of the rollup component.
The code will be like below.


out :: key_change(prev,curr)=
begin out :: cur != prev ; end out :: rollup(in) = begin out :: in ; end

     

 

Back To Question