You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Aggregate function (sum) in Value Set - Using CONNECT BY LEVEL - performance issue

edited Dec 4, 2025 1:26PM in Payroll and Global Payroll Interface (GPI) 1 comment

Summary:

Hello

When the aggregate function returns a whole number, we can fetch the value from the value set, and even when it returns a decimal, the output is generated correctly. However, the issue is that the extract is taking more than 12 hours to retrieve one month of calculated payroll process data

Here is the used code below;

SELECT
TO_CHAR ((n.n),'FM999999999999990D00')
FROM(SELECT /*+ CONNECT_BY_FILTERING / (LEVEL*0.01) n FROM DUAL CONNECT BY LEVEL <= 1000000000) n

WHERE

n.n = ( inner sql query )

Do you have any suggestions on how we can improve the performance?

Content (please ensure you mask any confidential information):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!