Jump to content

Informatica Question(Corrected)


Recommended Posts

Posted
src:
prod_id             src_type               Amt
101                        1                      300
102                         1                      100
103                         2                      150
105                         2                       450
101                         1                       300
106                           2                      140
 
tgt1:
prod_id         src_type           amt
101                   1                    300
102                    1                    100
 
tgt2:
prod_id         src_type           amt
103                   2                    150
105                    2                    450
106                     2                    140
 
how to divide into 2 tgts with above o/p??
which transformation to use??
Posted

crl+c

 

crl+v 

 

in 2 different files 

 

 

Posted

Use Sorter with distinct enabled

 

Specify the rules for loading data into target

Posted

 

src:
prod_id             src_type               Amt
101                        1                      300
102                         1                      100
103                         2                      150
105                         2                       450
101                         1                       300
106                           2                      140
 
tgt1:
prod_id         src_type           amt
101                   1                    300
102                    1                    100
 
tgt2:
prod_id         src_type           amt
103                   1     ??? 2               150
105                    1  ??? 2                  450
106                     2                    140
 
how to divide into 2 tgts with above o/p??
which transformation to use??

 

Bro -

 

Source - Sorter Distinct - Router Tx 2 Groups -  Target 1

                                                                        -  Target 2

 

Router : 1st group:  (PROD_ID = 101) OR (PROD_ID = 102)   -------> Target 1

              2nd group:  (PROD_ID = 103) OR (PROD_ID = 105)  OR (PROD_ID = 106) -------> Target 2

Posted

tgt1:

prod_id         src_type           amt
101                   1                    300
102                    1                    100
 
tgt2:
prod_id         src_type           amt
103                   2                    150
105                    2                    450
106                     2                    140
 
ila kavali ante Source Qualifier lo distinct select cheyi to remove dupliacate record and router transforamtion use chesi src_type =1 first grp sec-type=2 second grp and connect those 2 different tgts
c
Posted

Bro -

Source - Sorter Distinct - Router Tx 2 Groups - Target 1
- Target 2

Router : 1st group: (PROD_ID = 101) OR (PROD_ID = 102) -------> Target 1
2nd group: (PROD_ID = 103) OR (PROD_ID = 105) OR (PROD_ID = 106) -------> Target 2

sq lo distinct check sesthe saal..sorter avsram le..gallery_8818_6_385253.gif?1367349476
Posted

sq lo distinct check sesthe saal..sorter avsram le..gallery_8818_6_385253.gif?1367349476

 

 

if source is flat file then??gallery_8818_6_385253.gif?1367349476

Posted

if source is flat file then??gallery_8818_6_385253.gif?1367349476

then sorter..and distinct..gallery_8818_6_385253.gif?1367349476

×
×
  • Create New...