Looking for the previous version? View v2024.06 documentation →
Query Chain
Overview
A Query Chain (QC) is a multi-step data pipeline built on the Query Studio canvas. It connects data source widgets (RDBMS, Query, REST API, CSV, etc.) through transformation widgets (Filter, Aggregation, Join, Pivot, Unpivot, Projection) to an RD Output or file export. Query Chains can be scheduled, emailed, and reused as inputs to scenarios.
Prerequisites
- You are logged in to Data Trust with a Pro-User or Admin Pro-User role.
- At least one connection profile and one saved query are available in the system.
Steps
Path: Data Trust › Query Studio › Query Chain
Navigate to the Query Studio module and select QC_navigation to open the Query Builder workspace. This is the starting point for creating, editing, and managing queries in Data Trust.
The Qc page is the main workspace for building and editing queries. Use the canvas to write SQL, add data sources, connect transformations, and configure output options.
This step shows QC_Hedaer widget in the Query Chain workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.
The QC_Header widget_folders button option creates a copy or moves the selected query or folder within the Query Explorer hierarchy. Use this to duplicate a query as a starting point for a new one, or to reorganise the folder structure.
The QC_Chosse folder_new folder button option creates a copy or moves the selected query or folder within the Query Explorer hierarchy. Use this to duplicate a query as a starting point for a new one, or to reorganise the folder structure.
The QC_Chosse folder_new folder _add folder pop up option creates a copy or moves the selected query or folder within the Query Explorer hierarchy. Use this to duplicate a query as a starting point for a new one, or to reorganise the folder structure.
The QC_added folder option creates a copy or moves the selected query or folder within the Query Explorer hierarchy. Use this to duplicate a query as a starting point for a new one, or to reorganise the folder structure.
The QC page_return to explorer is the main workspace for building and editing queries. Use the canvas to write SQL, add data sources, connect transformations, and configure output options.
Navigate to the Query Studio module and select QC_Explorer navigation to open the Query Builder workspace. This is the starting point for creating, editing, and managing queries in Data Trust.
The QC_where used list button panel shows all Query Chains, scenarios, and other artefacts that reference the selected query. Use this to assess the impact of modifying a query before making changes that could affect dependent processes.
The QC_where used list button panel shows all Query Chains, scenarios, and other artefacts that reference the selected query. Use this to assess the impact of modifying a query before making changes that could affect dependent processes.
Drag the Qc_Gged Rdbms Table widget from the palette and drop it onto the Query Chain canvas. Once placed, click the widget to open its configuration popup and complete the required settings.
This step shows Qc_Rdbms_pop up in the Query Chain workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.
The Additional Settings panel provides advanced configuration options such as custom aliases, timeout limits, and execution flags. Configure only the settings relevant to your use case and leave optional fields at their defaults.
The Additional Settings panel provides advanced configuration options such as custom aliases, timeout limits, and execution flags. Configure only the settings relevant to your use case and leave optional fields at their defaults.
The Navigator panel displays the available databases, schemas, and tables for the selected connection. Expand the tree to locate the required table, then click Select to add it to the query.
The Navigator panel displays the available databases, schemas, and tables for the selected connection. Expand the tree to locate the required table, then click Select to add it to the query.
The Preview Data button fetches a sample of records from the selected table or query result. Verify the column names and sample values before proceeding to confirm the data source is correctly configured.
This step shows QC_RDBMSselect buttton _ in the Query Chain workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.
This step shows QC_RDBMS table selected in the Query Chain workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.
The Transformations tab lists all available data transformation widgets — Filter, Projection, Aggregation, Join, Pivot, Unpivot, and more. Drag the required transformation onto the canvas and connect it between the data source and output widgets.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
Click Save to persist the query or configuration to the Query Explorer. A confirmation message appears once the save completes, and the query is available for reuse in Query Chains and scenarios.
The Filter transformation restricts the records passing through the Query Chain to only those matching the specified conditions. Define the filter expression using field dropdowns, operator selectors, and value inputs, then save the widget.
The RD Output widget captures the final result set from the Query Chain for use in downstream processes. Configure the output name and format, then save the widget to make the results accessible to other scenarios and reports.
The RD Output widget captures the final result set from the Query Chain for use in downstream processes. Configure the output name and format, then save the widget to make the results accessible to other scenarios and reports.
The QC_Duplicate Qc transformation combines or deduplicates records from one or more input streams. Configure the matching columns and handling logic, then save the widget to apply the operation in the chain.
Navigate to the Query Studio module and select QC_Additional options tab to open the Query Builder workspace. This is the starting point for creating, editing, and managing queries in Data Trust.
Drag the Qc_Ged Email Widget widget from the palette and drop it onto the Query Chain canvas. Once placed, click the widget to open its configuration popup and complete the required settings.
The Email widget sends an automated notification with the Query Chain execution results to the specified recipients. Configure the recipient addresses, subject line, and result attachment options, then save before executing.
Click Execute Now to run the query immediately and fetch the result set. The results appear in the Results tab, and the execution status is displayed in the progress indicator.
Click Execute Now to run the query immediately and fetch the result set. The results appear in the Results tab, and the execution status is displayed in the progress indicator.
Monitor mode shows the live execution progress of the Query Chain as each widget processes data sequentially. Watch the progress indicators to confirm all stages complete successfully before reviewing the output.
The QC_results displays the output data returned by the query or Query Chain execution. Review row counts, column values, and data quality before saving or using the output in downstream processes.
This step shows QC_Received emial in the Query Chain workflow. Follow the on-screen prompts to complete this configuration step before proceeding to the next stage.