The following scenario creates a two-component Job, reading data from a database using a DB query and outputting delimited data into the standard output (console).
As a prerequisite of this Job, the MySQL ODBC driver must have been installed and the corresponding ODBC connection must have been configured.
Drop a tDBInput and tLogRow component from the Palette to the design workspace.
Connect the components using Row > Main link.
Double-click tDBInput to open its Basic settings view in the Component tab.
Fill in the database name, the username and password in the corresponding fields.
Click Edit Schema and create a 2-column description including shop code and sales.
Enter the table name in the corresponding field.
Type in the query making sure it includes all columns in the same order as defined in the Schema. In this case, as we'll select all columns of the schema, the asterisk symbol makes sense.
Click on the second component to define it.
Enter the fields separator. In this case, a pipe separator.
Now go to the Run tab, and click on Run to execute the Job.
The DB is parsed and queried data is extracted from the specified table and passed on to the job log console. You can view the output file straight on the console.