Professional Documents
Culture Documents
D at a Ware Ho using
PL SQ L
C o nt act Us
26
Sharing
Ap r 20 11
SCD Type 3
Naveen
0
Discussion Forum
Share
Filter
Discussio n Fo rum
Expressio n
SCD Type 3:
Ro uter
So rter
This Metho d has limited histo ry preservatio n, and we are go anna use skey as the
Rank
Transactio n Co ntro l
So urce Qualifier
Em pno
Enam e
Sal
10 1
10 0 0
10 2
20 0 0
10 3
30 0 0
Aggregato r
Unio n
Jo iner
Update Strategy
Lo o k Up
Em pno
Enam e
C-sal
P-sal
10 1
10 0 0
10 2
20 0 0
10 3
30 0 0
Subscribe t o Learn
Inf ormat ica
Like
Em pno
Enam e
Sal
10 1
10 0 0
10 2
4566
10 3
30 0 0
Test ing
Unit Testing
Integratio n Testing
UAT
Info rmatica Testing
Debugger
Co nstraint Based lo ading
Target Lo ad Plan
Advanced
Concept s
Subscribe
Targe t Table (0 1-0 2-20 11):
Delivered by FeedBurner
Em pno
Enam e
C-sal
P-sal
10 1
10 0 0
10 2
456 6
Null
10 3
30 0 0
10 2
4544
456 6
Mapplets
Partitio ning
Necessity Of
Perfo rmance-tuning
Identificatio n Of bo ttle
Necks
Optimizatio n o f Bo ttle
Perf ormanceTuning
necks
Perfo rmance tuning o f
Lo o kup
PDFmyURL.com
Partitio ning
And in this mapping Im using lo o kup, expressio n, filter, update strategy to drive the
purpo se. Explanatio n o f each and every Transfo rmatio n is given belo w.
Lo o kup
Push Do wn Optimizatio n
Scheduler
Chat wit h Me
Types o f Task's- 1
Types o f Task's- 2
Chat wit h Me
Offline
Visit or's
Incremental Aggregatio n
Mapping Templates
Grid Pro cessing
St e p 2: here we are go anna see the purpo se and usage o f all the transfo rmatio ns
that we have used in the abo ve mapping.
Wo rk Flo w Variables
Lo o k up Transf o rm at io n: The lo o k Transfo rmatio n lo o ks the target table and
co mpares the same with the so urce table. Based o n the Lo o k up co nditio n it
decides whether we need to update, insert, and delete the data fro m being lo aded
in to the target table.
As usually we are go anna co nnect Empno co lumn fro m the So urce
Qualifier and co nnect it to lo o k up transfo rmatio n. Prio r to this Lo o k up
transfo rmatio n has to lo o k at the target table.
Next to this we are go anna specify the lo o k up co nditio n empno =empno 1.
Finally specify that co nnectio n Info rmatio n (Oracle) and lo o k up po licy o n
multiple mismatches (use last value) in the Pro perties tab.
Expre ssio n Transf o rm at io n:
We are using the Expressio n Transfo rmatio n to separate o ut the Insert-stuffs and
Update- Stuffs lo gically.
Drag all the po rts fro m the So urce Qualifier and Lo o k up in to Expressio n.
Add two Po rts and Rename them as Insert, Update.
These two po rts are go anna be just o utput po rts. Specify the belo w
co nditio ns in the Expressio n edito r fo r the po rts respectively.
Inse rt : isnull(ENO1 )
Updat e : iif(no t isnull(ENO1) and deco de(SAL,Curr_Sal,1,0 )=0 ,1,0 )
PDFmyURL.com
Filt e r Transf o rm at io n: We are go anna use two filter Transfo rmatio n to filter o ut
the data physically in to two separate sectio ns o ne fo r insert and the o ther fo r the
update pro cess to happen.
Filt e r 1:
Drag the Insert and o ther three po rts which came fro m so urce qualifier in to
the Expressio n in to first filter.
In the Pro perties tab specify the Filter co nditio n as Insert.
Filt e r 2:
Drag the update and o ther fo ur po rts which came fro m Lo o k up in to the
Expressio n in to Seco nd filter.
In the Pro perties tab specify the Filter co nditio n as update.
Updat e St rat e gy: Finally we need the update strategy to insert o r to update in to
the target table.
Updat e St rat e gy 1: T his is intended to insert in to the target table.
PDFmyURL.com
Drag all the po rts except the insert fro m the first filter in to this.
In the Pro perties tab specify the co nditio n as the 0 o r dd_insert.
Twe e t
Sub mit
Reactio ns:
0
You can follow any responses to this entry through the RSS 2.0 feed. You can leave
PDFmyURL.com
a response.
G e t th i s
0 Responses
Le ave a R e p ly
Comment as:
Publish
Preview
Previous Entries
Next Entries
Recent Comments
2009 - Complete reference to Informatica is proudly brought to you by Naveen
PDFmyURL.com