i have two coloumn
emp_no sal
1 3000
2 3000
3 3000
4 4000
5 5000
6 2700
7 4500
i just need output by removing duplicate.my answer should be
emp_no sal
1 3000
2 4000
3 5000
and so on.please tel me the transformation to use and if variable is used in expression then how can i give variable expression

Answers were Sorted based on User's Feedback



i have two coloumn emp_no sal 1 3000 2 3000 3 3000 4 4000 5 ..

Answer / rayudu

First in the pre_session command task remove the duplicates
using the following

cut -d "," -f2 filename|uniq

Now in the file you will have

3000
4000
5000
2700
4500

now after source qualifier keep a expression and generate
the sequence.

Hope it clarifies

Regards,
rayudu

Is This Answer Correct ?    3 Yes 0 No

i have two coloumn emp_no sal 1 3000 2 3000 3 3000 4 4000 5 ..

Answer / jayachandra

One solution is use distinct key word on source qualfier as
suppose your table name is emp than on emp_sq
the query is

select emp_no,distinct sal from emp;

2nd sol is make an aggregator transformation here make a
coun()on sal port with group by then put filter
transformation with condition count(sal)=1

Is This Answer Correct ?    1 Yes 1 No

i have two coloumn emp_no sal 1 3000 2 3000 3 3000 4 4000 5 ..

Answer / nsatyabrat7

Use distinct in source qualifier and rest will be taken care

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Informatica Interview Questions

How Union Transformation is an Active Trans?

6 Answers  


Hi I'm new in Informatica. Can you show me a mapping sample on how to piviot the records? Thanks Robin

1 Answers  


What happens if you increase commit intervals and also decrease commitExplain grouped cross tab?

2 Answers  


what is the dashbords?

1 Answers   IBM,


wht is full process of Information source to target just like stg to productuon and development

1 Answers   Informatica,






Explain your project of banking domian.

0 Answers   Cap Gemini,


in a table it has 200 rows the query is select 150 from tablename.whats the output

2 Answers   Cap Gemini,


Hi, Can you please send me the Informatica 8 certification exam dumps to my email id rwork.san@gmail.com Thanks, Revathi.

6 Answers   CTS,


how will u take the data from clint server and next what u do in datamodeling what u will u do in staging area what u will u do next what u are doing please give the step by step by process

0 Answers   Patni,


How do you convert single row from source into three rows into target?

0 Answers  


Explain the pipeline partition with real time example?

0 Answers   Informatica,


how to join two flat file if they have diff. structure?how to join one relational and one flat file?

4 Answers   Wipro,


Categories