Optimizer can only optimize data access for those SQL statements that contain a search condition. A search condition is defined with a WHERE clause.
SELECT name
FROM customer
WHERE city = 'Seattle' AND zip > 98101
The following SQL key words can be combined with a search condition: SELECT, UPDATE, DELETE, INSERT.
Some search condition restrictions apply to UPDATE statements.
The form of the search condition has a significant effect on the costs incurred by executing the SQL statement. When determining costs for an SQL statement, Optimizer only considers the following search conditions:
If the search conditions in an SQL statement cannot be converted to one of the conditions listed above, Optimizer cannot determine a corresponding search strategy.
If search conditions are linked using a number of identical Boolean operators, the sequence of these conditions does not affect how Optimizer determines the search strategy.