Selectivity and cardinality statistics The optimizer determines the number of rows that will be scanned from disk when deciding on an access path for a particular table (whether to use an index or to scan the table). Statistics Cardinality statistics