cancel
Showing results for 
Search instead for 
Did you mean: 

Aggregates whereused

Former Member
0 Kudos

Hi ,

Is there any table which tells where( or in what queries) the particular aggregate is used.

Thanks,

S

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Its not possible to evaluate whether a query will use an aggregate beforehand. There are a few reasons for this:

1) The same query can use an aggregate AND also cannot use an aggregate depending on the selection criteria in the report. (e.g. The aggregate does not contain COMP_CODE, but the user selects COMP_CODE as an optional variable occasionally)

2) For each query, there can be multiple sub queries issued. Some of the subqueries may use an aggregate and some may not. (e.g. your query issues 6 subqueries, 3 use the aggregate and 3 do not)

The best way to find out is execute and debug the query in RSRT and check 'display aggregate' tickbox.

Former Member
0 Kudos

Thanks john- Its very informative.

I just had a requirement that I need to document all the aggregates I created and reflected queries on performnace improvement.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can use RSRT to find out if the query uses and aggregate or not. You can get the aggregates list in the RSDD* tables but you won't be able to say for sure that the query is using the aggregate or not. Aggregates might be built for a query or are not filled and not used, or if the query is running against some other selection than on which the aggregate is built up, it won't use the aggregate at the time of execution.

Cheers,

Kedar

Former Member
0 Kudos

You can also try RSRV to see that query uses Aggregate or not...

OOPS...RSRT not RSRV...

Guarav

Message was edited by: Gaurav

Former Member
0 Kudos

Try table RSDDSTATAGGR.

Also try other tables starting with RSDDSTAT* .

Hope it helps,

Farhan