Skip to main content Skip to complementary content

Extracting useful information from the table

Procedure

  1. Double-click the tMSSqlInput component to open its Basic settings view in the Component tab.
  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.
  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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!