Select features using attributes

You can select features in a map or scene interactively, or you can select them based on their attribution. When you select by attribution, you choose the selection method and write an expression to select an exact subset of features.

To select a subset of features in a map or scene by writing an expression, use the Select By Attributes button to open the Select By Attributes geoprocessing tool. Use the tool to form an SQL query to select features matching a selection criteria from a layer or a table.

To create a selection set of features from a layer or a table, complete the following steps:

  1. In a map or scene, on the Map tab, in the Selection group, click Select By Attributes to open the Select By Attributes geoprocessing tool.

    Alternatively, in a table, under View, or under Table for a stand-alone table, in the Selection group, click Select By Attributes . The tool can also be found at the top of the table view.

  2. On the Select By Attributes tool dialog box, for the Input Rows parameter, choose the layer or table from which to select.
  3. For the Selection type parameter, choose how the selection is applied and what to do if a selection already exists in the view.
  4. Enter a query expression using one of the following methods:
    • Choose values from the drop-down menus to construct the where clause. These menus and their values are specific to the underlying source data. Optionally, click Add Clause to add another clause to the query. Click the Verify button Verify the SQL expression is valid to validate the expression.
    • Click the SQL toggle button to open a window where you can type an SQL expression directly. Click the Verify button Verify the SQL expression is valid to validate the expression.
    • Click Load Load Query to load an existing query saved as a file.
  5. Optionally, check Invert Where Clause to select the inverse of the results of the expression formed in the previous step.
  6. Optionally, click Apply to run the Select By Attributes tool without dismissing the tool dialog box.
  7. Optionally, click the Export Selection button to save the selection as an output dataset. Specify an output location and name, then click Save to export.
  8. Click OK to run the selection query and work with the selection results.

    To zoom to your selection, click the results count at the bottom of the view.

    Zoom to the selected features.

Related topics