Articles in this section
Category / Section

Create New Tables from Single Table Based on Filter using Bold ETL

Published:
Updated:

In this article, we have imported data tables from the SQL server, implemented data transformation processes through the utilization of SQL scripts to generate new tables by applying filters and joining existing tables, and subsequently transferred the modified data to the target database utilizing the Bold ETL tool.

Follow the step-by-step process below:

Step 1: Click on the Bold ETL icon to open the Bold ETL site in a new tab.

select-bold-etl.png

etl-page.png

Step 2: Click Add Project in the left-side panel. Enter the project name and click the tick icon.

etl-add-project.png

add-project-name.png

Step 3: Click on Project name. It will open yaml editor to configure the source and destination connector configuration.

copy-tables.png

Step 4: Click MSSQL in the left-side panel and add the template in the right-side panel to add the sample configuration in the yaml editor. Replace your DB credentials and tables as shown below.

mssql-add-template.png

Step 5: Click Save and choose the destination, then click the Yes button.

select-destination-store.png

Step 6: Go to Schedules and select Run Now option in the context menu of the data source grid.

schedule-run-now.png

Step 7: Logs will be available in the Logs tab. Click the project name in the left side panel and switch to the Logs tab.

click-logs.png

etl_s6.png

Step 8: Go to the Transformation tab and click Add Table. Enter the table name to be moved into the destination database.

transformation-tab.png

combined-details-table.png

Step 9: Tables will be moved into destination schema named Project Name. E.g., if the project name is test, it will be moved to the test schema.
Refer to Transformation-Preview

Step 10: Enter the SQL scripts to apply transformation on existing tables and create the SQL scripts into a new table in the destination database.

transformation-sql-editor2.png

Tablename SQL Script
FreshDetails select * from copytables.monitortable where descrp = 'Fresh'
ExitDetails select * from copytables.monitortable where descrp = 'Exit'
CombinedDetails select t1.id,t1.date,t1.count as freshcount,t1.descrp as freshdescrp, t2.count as exitcount,t2.descrp as exitdescrp from (select * from copytables.monitortable where descrp = 'Fresh') t1 full outer join (select * from copytables.monitortable where descrp = 'Exit') t2 on t1.date=t2.date

Step 11: Click Save. Then go to “Source” or “Load” tab and save the project again for Run Now on the Schedule page
Step 12: Then, go to the Schedules page and select Schedule option in the context menu of the data source grid. Configure the schedule and click Run.

schedule-copy-table.png

Step 13: As per the schedule, move the transform tables and source tables into the destination database, and create a data source with a random table in Bold Reports.

datasource-copy-table.png

Step14: Go to the Dataset page and create a dataset with the existing data source created in the previous step.

existing-data-source.png

copy-table-connect.png

  • Drag and drop the table that will be used for the report.
    copy-table-dataset.png

Refer: Working with ETL

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied