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...


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

Is it possible to use a client with different version than that of its Informatica server?

0 Answers  


we have table like cust_id,cust_name,cust_loc like this 1.we need to get perticular location,to do this we can use filter transformatin,that logic is same for relation table and flat file tabl?

2 Answers  


what is data driven?

5 Answers   TCS, Wipro,


What is informatica worklet?

0 Answers  


In a mapping i have three dimensions. If i want to pass a same surrogate key value to all the three dimensions by using one sequence generator is possible?If the mapping is containing single flow? And in the same case if the mapping is contaning 3 flows for the three dimensions then by using one sequence generator can we populate surrogate key (same value) to all the three dimensions?

6 Answers   IBM,


how can you load data into target table without leading zeor's

4 Answers   Deloitte,


What is the difference between a repository server and a powerhouse?

0 Answers  


in u flatfile some of fact records are missed then u load the diminision records are not if u load diminsion records what about fact table records

0 Answers  


How do you create single lookup transformation using multiple tables?

6 Answers   TCS,


hi all when i am creating repository contents i am getting this error and not able to create contents please let me know wht may be the problem ORA-01031: insufficient privileges Database driver error... Function Name : executeDirect SQL Stmt : CREATE VIEW REP_DATABASE_DEFS AS SELECT DISTINCT DBDNAM DATABASE_NAME, SRCNAM DEF_SOURCE, SUBJ_NAME SUBJECT_AREA, NULL VERSION_ID, OPB_DBD.VERSION_NUMBER DATABASE_VERSION_NUMBER FROM OPB_DBD, OPB_SUBJECT, OPB_SRC WHERE OPB_DBD.SUBJ_ID = OPB_SUBJECT.SUBJ_ID AND OPB_SRC.DBDID = OPB_DBD.DBDID AND OPB_SRC.VERSION_NUMBER = OPB_DBD.VERSION_NUMBER AND OPB_SRC.IS_VISIBLE = 1 Oracle Fatal Error Database driver error... Function Name : ExecuteDirect Oracle Fatal Error Error occurred while creating the repository An error has occurred while creating contents. Dropping repository tables... Create Contents operation on repository [reposerv] ended at 01/02/2009 13:02:48. Elapsed time is 0:00:09.

2 Answers  


When you connect to repository for the first time it asks you for user name & password of repository and database both. But subsequent times it asks only repository password. Why?

1 Answers  


How to delete the data in the target table after loaded.

3 Answers   TCS,


Categories