PowerCenter Level1 Unit03

Embed Size (px)

DESCRIPTION

Presentation of PowerCenter Level 1 Labs Unit03

Citation preview

  • 7/17/2019 PowerCenter Level1 Unit03

    1/18

    1

    Unit 3. Source Qualifier

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    2/18

    2

    Unit Objectives

    Understand when and how to use:

    Source Qualifier transformation

    Source Qualifier join

    Overall lab project

    Create and run pass through mappings

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    3/18

    3

    Source Qualifier Transformation

    Unit 3

    Active

    Ports epresent table columnsor file fields

    All input!output "#!O$

    Usage %andator& for flat file and

    relational table sources Converts source datat&pesto PowerCenter datat&pes

    'or relational sources(selects onl& columns usedin mapping

    Selects records from flat file and relational table

    sources) 'or relational tables( creates a SQ* S+*+C,)

  • 7/17/2019 PowerCenter Level1 Unit03

    4/18

    4

    Datatype Conversion

    ,ransformation datat&pes allow mix and matchof source and target database t&pes -hen connecting ports( native and transformation datat&pes must be compatible

    "or must be e.plicitl& converted$

    !T"#$ D!T!T%&$S T'!S(O')!T"O D!T!T%&$S

    Specific to the source and targetdatabase t&pes

    PowerCenter internal datat&pes

    /ispla& in source and target tableswithin %apping /esigner

    /ispla& in transformations within%apping /esigner

    ativeative

    Transformation

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    5/18

    *

    #elocity )et+o,olo-y

    "n labs /e /ill use "nformatica0s #elocity met+o,olo-y

    Templates

    %apping specification templates

    Source to target field matri.( 0

    amin- conventions

    Object t&pe prefi.es: m1( e.p1( agg1( wfl1( s1( 0

    est practices

    *oo2 for icon in labs

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    6/18

    ab Data )o,el 5)ersc+e )otors Data 6are+ouse

    3ote: ,he fact tables have shared "conformed$ dimensions

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    7/18

    7

    T/o8&+ase &rocess usin- Sta-in- !rea

    SourcesStaging

    Area

    /ata

    -arehouse

    +,* Phase 4

    "*abs 456$

    +,* Phase 7

    "*abs 8579$

    Relational tablesComma-delimited flat filesFixed-width flat file

    Relational tables

    Relational tables

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    8/18

    9

    abs 5 Typical Se:uence

    Tool Step

    /esigner 4) #mport!create source metadata

    7) #mport!create target metadata

    ) Create mapping

    -or2flow %anager ;) Create wor2flow

  • 7/17/2019 PowerCenter Level1 Unit03

    9/18

    ;

    Unit 3 ab ! oa, &ayment Sta-in- Table

    SourcesStaging

    Area

    &ayment Data ?&!%)$T

  • 7/17/2019 PowerCenter Level1 Unit03

    10/18

    1A

    ab ! 'evie/

    -hat did we accomplish with this lab>

    Questions>

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    11/18

    11

    Bomo-eneous oin

    ?oins combine data from different records

    @omogeneousjoins combine data from tables within the same databaserelated b& primar& and foreign 2e&s in the PowerCenter source definitions

    Specif& homogeneous joins in a Source Qualifier transformation

    ,he join is performed on the source database at runtime "when SQ*generated b& the Source Qualifier e.ecutes$

    Primar&!foreign2e& relationship

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    12/18

    12

    User Define, Source Qualifier oin

    +nter join condition e)g)

    tablea)emplo&ee1idtableb)emplo&ee1id

    /efault is inner join B specif& other join t&pes

    "covered later$ in the User /efined ?oin attribute

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    13/18

    13

    Unit 3 ab . oa, &ro,uct Sta-in- Table

    SourcesStaging

    Area

    ST>?&'ODUCT

  • 7/17/2019 PowerCenter Level1 Unit03

    14/18

    14

    ab 'evie/

    -hat did we accomplish with this lab>

    Questions>

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    15/18

    1*

    Source &ipelines

    +ach Source Qualifier transformation starts a singlesource pipeline

    A mapping can have multiple source pipelines)

    ,ransformations can split one source pipeline intomultiple pipeline branches

    Sourcepipeline 7 pipelinebranches

    ,

    ,

    , ,

    , ,

    ,

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    16/18

    1

    Unit 3 ab C. oa, Dealers+ip &romotions Sta-in- Tables

    SourcesStaging

    Area

    ab C Dealers+ip Data ?D$!$'SB"&

    ST>?&'O)OT"OS

  • 7/17/2019 PowerCenter Level1 Unit03

    17/18

    17

    ab C 'evie/

    -hat did we accomplish with this lab>

    Questions>

    Unit 3

  • 7/17/2019 PowerCenter Level1 Unit03

    18/18

    19

    Unit 3 QuiE

    4) -hen would &ou use a Source Qualifier transformation>

    7) -hat 2inds of ports does it have>

    ) @ow can &ou use it to join two sources>

    Unit 3