August 15, 2023

Extracting useful information from the table – Docs for ESB 6.x

Extracting useful information from the table

  1. Double-click the tMSSqlInput component to
    open its Basic settings view in the Component tab.

    use_case_tmssqlconnection5.png

  2. Select the Use an existing connection check
    box. If multiple connections are available, select the connection you want to
    use from the Component List drop-down
    list.
  3. Click Edit schema to define the data
    structure to be read from the table. In this example, we need to read all three
    columns from the table.

    use_case_tmssqlconnection6.png

  4. In the Table Name field, type in the name of
    the table you want to read the data from: Wage_Info in this example.
  5. In the Query field, fill in the SQL query to
    be executed on the table specified. To obtain the data of employees whose wages
    are above the average value and order them by id, enter the SQL query as
    follows:SELECT *
    FROM Wage_Info
    WHERE wage >
    (SELECT avg(wage)
    FROM Wage_Info)
    ORDER BY id


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