Selectivity Hints

The first hint type that can appear within a hint string is a selectivity hint. A selectivity hint is identified by a hint type identifier of either “S” or “s”.

Like user-supplied selectivity estimates, the selectivity value is always expressed as a percentage of the table’s rows, which satisfy the condition.

Example

The following example is exactly equivalent to the second user-supplied condition selectivity example.

SELECT *
FROM Customers c, SalesOrders o
WHERE (o.SalesRepresentative > 1000.0, 's: 0.5)
  AND c.ID = o.CustomerID
Related concepts
Index Preference Hints
Execution Phase Hints
Usefulness Hints
User-Supplied Condition Selectivity
Related reference
INDEX_PREFERENCE Option