Adding Table Construction Rules
To add table construction rules to a query, first select the ‘Map to Table’ option. When the option is selected, the controls for specifying the table construction rules are enabled. The Join Subtrees option, if checked, will create multiple rows per record, which correspond to each combination of the child nodes of the subtrees.
For example, if the selected node represented job application information, there could be subtree nodes for job location and for job type. When ‘Join Subtrees’ is not selected, only one row will be created for each application, and the first child node for each subtree would appear (‘New York’ & ‘engineering’). If the ‘Join Subtrees’ option is selected, multiple rows will be created to combine each location with each job type (‘New York’ & ‘engineering’, ‘Boston’ & ‘engineering’, ‘New York’ & ‘programming’, ‘Boston’ & ‘programming’, etc.).
The values for other columns would be duplicated. Individual column attributes can be changed on the selection table, where each available column is displayed. The column header shows the node or attribute name. The fields under the column name are column conversion attributes.
• Select
Select the column in the final table. If this field is selected, the column is included in the output table.
• Alias
Column alias. If a value is entered, the value is used as the column header in the final table. Otherwise, the node or attribute name is used. In the case of XML queries, type conversion must be done on the data source schema definition screen during data source definition.