Extracting useful information from the table - 7.3
MSSql
- EnrichVersion
- Cloud
- 7.3
- EnrichProdName
- Talend Big Data
- Talend Big Data Platform
- Talend Data Fabric
- Talend Data Integration
- Talend Data Management Platform
- Talend Data Services Platform
- Talend ESB
- Talend MDM Platform
- Talend Open Studio for Big Data
- Talend Open Studio for Data Integration
- Talend Open Studio for ESB
- Talend Real-Time Big Data Platform
- EnrichPlatform
- Talend Studio
- task
- Data Governance > Third-party systems > Database components > MSSql components
- Data Quality and Preparation > Third-party systems > Database components > MSSql components
- Design and Development > Third-party systems > Database components > MSSql components
Procedure
-
Double-click the tMSSqlInput component to
open its Basic settings view in the Component tab.
-
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.
-
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.
-
In the Table Name field, type in the name of
the table you want to read the data from: Wage_Info in this example.
-
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