there is a product table

prodid prodname price

100 cinthol 10

101 hamam 10

102 neem 20

103 cake 30

in the above table the price of some products are
duplicated and some product prices are distinct we want to
push the duplicated prices to one target and non-duplicated
prices to other target without using expression and
sequence generator transformation

Answers were Sorted based on User's Feedback



there is a product table prodid prodname price 100 cinthol 10 101 hamam 10 102..

Answer / babu

Hi,
If your source is RDBMS,u can writ sql override in
sourequalifier.


select p.*,pc.cno from product p,(select price,count(price)
cno from product group by price) pc where pc.price=p.price;

In RTR group1 cno=1
group2 cno>1

OR
If source is flatfile

SRC-->SQ-->AGG(GROUP BY PRICE,CNO=COUNT(PRICE))
|
SRC-->SQ-->JNR--RTR (GRP1 CNO=1 )-->TRG1
(GRP2 CNO>1 )-->TRG2

Is This Answer Correct ?    2 Yes 1 No

there is a product table prodid prodname price 100 cinthol 10 101 hamam 10 102..

Answer / akash

Hi Krish,

In this case we will get distinct records in one table and
one record each for duplicate records of each table.

For ex:
Source:
101 neem
101 neem
101 neem

Duplicate target:
101 neem

Can you suggest any way through which we can get as many
duplicate records as there are in the source?

Is This Answer Correct ?    0 Yes 0 No

there is a product table prodid prodname price 100 cinthol 10 101 hamam 10 102..

Answer / honey

Help me out generating count in informatica.

Is This Answer Correct ?    0 Yes 0 No

there is a product table prodid prodname price 100 cinthol 10 101 hamam 10 102..

Answer / krish

take AGG t/r and give count on price
and in router count(price)=1 and count(price)>1.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Informatica Interview Questions

What is the difference between informatica 8.x and 9.x

1 Answers   Wipro,


Explain the different lookup methods used in informatica?

0 Answers  


Which transformation can be created only as reusable transformation but not as non-reusable transformation?

1 Answers   Informatica,


what is data driven in informatica

5 Answers   IBM,


Can a joiner be used in a mapplet.

1 Answers  






Hi can any one tell me the difference between persistence and dynamic caches? On which conditions we are using these caches?

3 Answers  


How to Create a folder using pmrep command?

0 Answers  


There are 4 flat files with number of records as indicated below. Which files should be picked first for joining using joiners so as to get best performance. File A - 1000 records File B - 100 records File c - 10000 records File D - 10 records Please explain. Thanks and Regards,

1 Answers   Amdocs,


what is diff between grep and find

3 Answers   IBM, iFlex,


Why the workflow is failed after running two hours in informatica?

1 Answers   GE,


Does Facttable Normalized or Denormalized?

2 Answers   IBM,


Differences between connected and unconnected lookup?

0 Answers  


Categories