Deleting a profiling report from the data quality data mart
If you want to delete some of the profiling reports in the data mart to ease the management of the reports, you can use SQL queries in the Data Explorer perspective in Talend Studio.
Before you begin
- You have defined a data mart for the reports.
- You have executed some reports in Talend Studio connected to the data mart where you have saved report results.
- You have the report identifier from the data mart. If you do not have the report identifier, see the following procedure.
Getting a report identifier from the data mart
Before deleting a profiling report, you need the report identifier.
Procedure
- Open the Data Explorer perspective in Talend Studio.
- In the Connections view, right-click a database connection and select New SQL Editor.
-
- If you want the identifier of one report, enter the following SQL query
in the editor:
use <datamart database name>; /* get report UUID */ select REP_UUID, REP_LABEL from tdq_analysis where REP_LABEL = '<report name>';
Information noteImportant: Use the exact data mart and report names in the query. - If you want the identifier of several reports, enter the following SQL
query in the editor:
use talend_dq61; /* get report UUID */ select REP_UUID, REP_LABEL from tdq_analysis where REP_LABEL like 'c%'
In this example, you want to access the talend_dq61 data mart and get the identifiers of all the reports which start with the letter c .
- If you want the identifier of one report, enter the following SQL query
in the editor:
- Execute the SQL query.
Results
What to do next
Deleting a report from the data mart
Procedure
Results
The reports have been deleted from the TDQ_ANALYSIS table. All facts (analysis results) related to these reports have been deleted from the fact tables.