Table of Contents

Search

  1. Preface
  2. Data Profiling
  3. Profiles
  4. Profile results
  5. Tuning data profiling task performance
  6. Troubleshooting

Data Profiling

Data Profiling

Creating and running a query

Creating and running a query

You can create a query on the source object after you run a profile on it.
  1. On the
    Results
    tab, click
    Queries
    .
    The following image shows the
    Queries
    option on the
    Results
    tab:
    The image shows the Queries option on the Results page. You can click the Queries option to create a query on the source object.
  2. In the
    Queries
    dialog box, click Add.
    The following image shows the
    Queries
    dialog box:
    The image shows a sample Queries dialog box which contains two queries. The dialog box also contains an add, run, and delete buttons.
  3. In the
    New Query
    dialog box, enter a name for the query.
    Optionally, you can add a description for the query.
  4. Click Add to add a condition.
  5. Choose a column, operator, and values as necessary.
  6. Enter more conditions if required.
  7. 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:
    The sample image shows the new query dialog box. The image also shows the add option to add conditions to the query.
  8. Click
    OK
    .
  9. In the
    Queries
    dialog box, select one or more queries, and click Run.
  10. 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:
    The sample image shows the Run Queries dialog box. You can choose a flat file connection to run the query.
  11. Click
    Run
    .
  12. In the
    Queries
    dialog box, click
    Show
    .
    The
    Data Preview
    area shows the complete query results.
  13. 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.

0 COMMENTS

We’d like to hear from you!