Editing the query text
If you want to use valid SQL expressions for which there are no command buttons, you can edit the query text directly by checking the Edit query text check box and typing the expression directly.
- Start ArcMap.
- Load data in the map.
Right-click the layer for which you want to define a calculated specification rule and click Properties.
The Layer Properties dialog box appears.
- Click the Calculated Representations or Calculated Fields tab.
- If necessary, create a new specification rule.
Click the SQL Statement drop-down arrow and click Edit SQL statement.
The Query Builder dialog box appears.
Check the Edit query text check box.
The SELECT, FROM, and WHERE text boxes become editable.
- Change the text as needed in the statement.
- Uncheck the Edit query text check box when you are finished editing the statement.
You can clear the contents of the SELECT OBJECTID and WHERE fields by clicking Clear.