Task B: Selection by Attributes using SQL expression (Data_Validation_Perennial.shp)
1. Right-click the shapefile and choose ‘Attribute Table’
2. Click ‘Select by Attribute’
a. This will open a ‘Select by Attribute’ dialog box
3. Within this box, choose which file you want to select from and then the type of selection (new selection for this example)
Note: Here you can create a new selection, add to current selection, remove from current selection, etc.
4. Then using a SQL query, you choose a field as a parameter (occ_Ex for this example) and then a condition (greater than for this example) and then a value for that condition (10 in this case)
Note: The value doesn’t have to be a number, it could be a name, letters within a name, etc. It depends on what type of field you are using in the query (string, integer, etc.). This field type also determines the kind of conditions you can use (starts with for string fields, greater than for numeric fields, etc.)
5. You can hit either ‘Apply’ or ‘OK’. ‘Apply’ will just make the selection without closing the dialog where as hitting ‘OK’ will make the selection and close the dialog.
6. Viewing the attribute table, the amount selected out of the total will be shown in the bottom left