When you set the bindings and output for a data rule, you
create a direct link between a conceptual element in a rule definition,
and a physical piece of data in one of your data sources. If you
want to use data from more than one table, then you need to set join
key elements as part of the binding process.
About this task
When you create a data rule and want to use physical data
that is located in two or more separate tables, or you need to set
up output columns that are from more than one table, then you need
to set up join key conditions to join the tables.
To set the
join key elements for a data rule, open an existing data rule or create
a data rule. You can create a data rule either by highlighting an
existing rule definition and clicking Generate a Data Rule,
or by running a test on an existing rule definition, clicking View
Output, and then clicking Save as a Data Rule.
Procedure
- Open the data rule you want to set the join key elements
for from the Data Quality workspace.
- Find the Overview and Binding
And Output tabs on the top of the screen, and click on
the Binding and Output tab.
- In the Select View menu on the left
side of the screen, click on Bindings and fill
out the appropriate information in the Rule Logic Variables box
to bind your data rule to the appropriate physical data elements.
- In the Select View menu, click Join
Keys. The Join Keys workspace
displays a Tables Requiring Joins table that
shows the tables that you need to join.
- Use the Tabbed Palette on the right side of the screen
to define Key 1 and Key 2.
Click the Data Sources tab and select a key
from a specific table in your data sources. Select the Show
tables from Bindings Only box if you want to select only
keys from tables that you set in your binding settings. You can search
your volumes of tables by using the search box on top of the Data
Sources tab. Use the arrows to the right of the search
box to jump to the next piece of data that matches your search criteria.
- Specify the join type by selecting from the Include
Records menu.
- Optional: Validate the join settings by clicking
the Validate button, and running the data rule
with the new join settings by clicking Run.
You can view the output of the data rule by clicking View
Output.
- Click Saveto save your current settings
or click Save and Close if you have finished
working with this data rule.
What to do next
Now you can add information to the Output screen
by clicking the Output item from the Select
View menu on the left side of the screen.
Note: If
your rule logic does not span multiple tables, you do not have to
use a join key. Also, if you bring a rule definition or data rule
into a rule set that has a reference column check (in_reference_column),
you will need to explicitly join the tables together.