My Oracle Support Banner

E-SQR: Can You Add A Hint To A SELECT DISTINCT SQL Statement In SQR? (Doc ID 638198.1)

Last updated on AUGUST 11, 2022

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.2 and later
Generic (Platform Independent)
SPECIFIC TO: SQR


Goal

Poor performance is observed in a particular SQR and so a sql hint is needed.

The hint must be the first thing after the select or the hint is ignored. However, the SQR is considering the distinct as a column in the example below and seems to be stipulating that the distinct be the first thing after the select.

Begin-SELECT
/*+ INDEX (HDR_ORIG IQTEST_MCHDR) INDEX (ITM PSDITEM) USE_HASH (PAYITM) */
DISTINCT
HDR.CUST_ID

Is it possible to add a hint to an SQR?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.