A full-table scan can be avoided by creating an index or rearranging the conditions in an SQL statement that are indexed.