Building a query for the Production Advanced Query command (Maritime Charting)

An SQL expression can be defined to query features across a database. The results of the query are displayed in the table created with the Production Advanced Query tool.

SQL expressions are built according to a standard syntax, which includes the following:

Learn more about building an SQL expression

With the query builder for the Production Advanced Query tool, you can also control what is displayed in the results table aside from your expression results. You can choose to display any of the following with the results:

Etapes :
  1. Start ArcMap.
  2. If necessary, load data in the map.
  3. Add the Production Advanced Query tool in ArcMap by doing the following:
    1. On the main menu, click Customize > Customize Mode.

      The Customize dialog box appears.

    2. Click the Commands tab.
    3. In the Categories list, choose Production Editing.
    4. From the Commands list, drag the Production Advanced Query button Production Advanced Query to a toolbar.
    5. Click Close.
  4. Click the Production Advanced Query button Production Advanced Query.

    The Production Advanced Query window appears.

    Production Advanced Query window
  5. Click the Advanced Query SQL button Advanced Query SQL in the Production Advanced Query window.

    The Select Features Using a Query dialog box appears.

    Select Features Using a Query dialog box
  6. Click the Layer drop-down arrow and choose the layer or layers you want to use for your query.
  7. Click the Method drop-down arrow and choose a selection method.

    Lists of fields are displayed in the Fields and Additional display fields lists.

  8. Choose the field you want to use in the query in the Fields list.
  9. Click Get Unique Values.

    The unique values for the field appear.

  10. Construct an SQL query expression.

    For guidelines on how to build SQL expressions for different data formats, see Building a query expression.

  11. Click Clear to delete a previously created expression and create a new one.
  12. Click Load and navigate to the appropriate location if you want to use a previously created query expression WHERE clause.
    RemarqueRemarque :

    Only the WHERE clause will be loaded. You will still have to manually set other information, such as the layer, method, and fields.

  13. Click Save after creating an expression if you want to save the expression for future use or reference.
    RemarqueRemarque :

    Clicking Save only saves the WHERE clause but does not save other information such as layer, method, or fields.

  14. If you want to display any additional fields in the feature classes, check the check boxes next to their names in the Additional display fields list, or check the display all fields check box to display all available fields.
  15. If you want the field aliases to appear in the query table rather than the field names, check the display field alias name check box.
  16. If you only want to include features in the current extent, check the use current extent check box.
  17. Do one of the following:
    • Click Apply, then Close, when you have finished selecting features.
    • Click OK if you want to execute the query and close the Select Features Using a Query dialog box.

    The query results appear in the Production Advanced Query window.

Thèmes connexes

4/27/2014