Modifying extraction queries by appending an OR statement
Instead of overriding the extraction query, you can choose to append an alternate condition to the original WHERE clause. To append an alternate condition, you would use an OR operator.
If you want to add the map compilation scale as an alternate condition for data extraction, you can add
OR M_CSCL = '40000'
to the extraction query that has been created at the product class level. This tells the populator that the features extracted must meet the conditions specified at the product class level, and they can also be extracted if they have a map compilation scale of 40000.
- Start ArcMap.提示:
If the ArcMap - Getting Started dialog box appears, you can open a new or existing map document. You can also check the Do not show this dialog box in the future check box and click Open.
-
If necessary, open the Product Library window by clicking Customize > Production > Product Library on the main menu.
A tree view of the product library appears.
- Navigate to the series, product, instance, or area of interest for which you want to append an OR operator to the extraction query.
-
Right-click the product, instance, or area of interest and click Properties.
提示:
Extraction queries can be applied at the instance level (common for nautical charts) or at the series level if all the products associated with that series will have the same compilation scale.
The properties dialog box appears for the series, product, instance, or AOI.
-
Click the Extraction pane on the left of the dialog box.
The extraction properties appear. The Settings area is blank.
-
Right-click in the Settings table and click Add Record.
A new row appears in the Settings table.
- Click the drop-down arrow in the Tables cell and choose the name of the table or feature class for which you want to modify the extraction query.
- Repeat steps 6 and 7 for each table that has a query you want to modify.
-
Click the cell to the left of the Tables cell to select an entire row.
提示:
You can press and hold CTRL or SHIFT while clicking several rows at once to select more than one row.
-
Right-click the rows and choose Product Class Where Clause OR.
OR appears in the Options cell for the row.
-
Click the ellipsis (...) in the SQL Statement cell.
The Query Builder dialog box appears.
-
Check the Edit query text check box.
The query in the WHERE text box becomes editable.
- Place your pointer at the end of the query text and click the OR operator.
-
Paste or type the condition you want to add to the extraction query.
提示:
You can append more than one OR operator and type more conditions.
-
Click OK.
The properties dialog box appears for the series, product, instance, or AOI.
- Repeat steps 11–15 for each extraction query to which you want to append an OR operator.
- Click OK.