IBM Support

SELECTIVITY clause on queries

News


Abstract

The new SELECTIVITY clause can be optionally used to tell SQL Query Engine (SQE) how selective a predicate will be for a query.

Content


Best practice: Use this new, optional SQE hint sparingly. 
SQE includes cost-based optimization and a Global Statistics Manager, which typically results in a query plan and implementation that is optimal and not in need of hinting.
Refer to the Performance and Query Optimization section for usage details: Use SELECTIVITY to supply missing information

See the SQL Reference for syntax details: Search conditions

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Document Information

Modified date:
06 October 2020

UID

ibm16340679