August 15, 2023

Mapping the input and output schemas – Docs for ESB 6.x

Mapping the input and output schemas

  1. Right-click ELTMap, select Link > *New Output*
    (Table)
    from the contextual menu and click TotalScoreOfPreferredSubject. In the pop-up dialog
    box, click Yes to get the schema from the
    target component.
  2. Click ELTMap to open its Basic settings view.

    components-teltteradatamap_s1_eltmap.png

    Fill in the Host, Database, Username, and
    Password fields with the Teradata database
    connection information.
  3. Click the […] button next to ELT Teradata Map Editor to open its map
    editor.

    components-teltteradatamap_s1_eltmap_mapeditor.png

  4. Add the input table PreferredSubject by
    clicking the [+] button in the upper left
    corner of the map editor and selecting the relevant table name from the
    drop-down list in the pop-up dialog box.

    Do the same to add another input table TotalScore.
  5. Drag the StuName column in the input table
    PreferredSubject and drop it to the
    corresponding column in the input table TotalScore. Then select the Explicit
    join
    check box for the StuName
    column in the input table TotalScore.

    Do the same for the Subject column.
  6. Drag the SeqID column in the input table
    PreferredSubject and drop it to the
    corresponding column in the output table.

    Do the same to drag the StuName and
    Subject columns in the input table
    PreferredSubject and the Score column in the input table TotalScore and drop them to the corresponding
    column in the output table.
  7. Click the Generated SQL Select query for “table2”
    output
    tab at the bottom of the map editor to display the
    corresponding generated SQL statement.

    components-teltteradatamap_s1_eltmap_sql.png

    The SQL query generated in the ELTSubqueryMap component appears as a subquery in the SQL query
    generated by this component. Alias will be automatically added for the selected
    columns in the subquery.
  8. Click OK to validate these changes and close
    the map editor.

Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x