You can create a query on the source object after you run a profile on it.
On the
Results
tab, click
Queries
.
The following image shows the
Queries
option on the
Results
tab:
In the
Queries
dialog box, click Add.
The following image shows the
Queries
dialog box:
In the
New Query
dialog box, enter a name for the query.
Optionally, you can add a description for the query.
Click Add to add a condition.
Choose a column, operator, and values as necessary.
Enter more conditions if required.
After you enter all the conditions for the query, choose one of the following options to generate query results:
All.
Data Profiling
retrieves the rows that meet all the conditions.
One of.
Data Profiling
retrieves those rows that meet at least one of the conditions.
The following image shows the
New Query
dialog box which contains the Add option to add conditions to the query, the Delete option to delete the conditions, and an option to choose all or one of the conditions for the query:
Click
OK
.
In the
Queries
dialog box, select one or more queries, and click Run.
In the
Run Queries
dialog box, choose a flat file connection.
Data Profiling
runs the query on the runtime environment associated with the flat file connection.
The following image shows the
Run Queries
dialog box:
Click
Run
.
In the
Queries
dialog box, click
Show
.
The
Data Preview
area shows the complete query results.
To view the query results as a .csv file, navigate to the directory that you used to create the flat file connection.
Data Profiling
generates a query results file named
query_<ProfileName>query<QueryName>.csv
. If the profile has associated rules,
Data Profiling
also generates a legend file named
query_<ProfileName>query<QueryName>.legend
which explains the column content in the query results file.