CrystalLion
Programmer
We have a CR XI report that uses a table called Fund in both the main report and the subreports. The table's primary index is FundID. Some Funds are connected to other Funds via a field called Master_FundID. So, in the Fund table the fields would be populated like this:
FundID Master_FundID
JonesMaster null
Jones1 JonesMaster
Jones2 JonesMaster
The Main report needs to pass the FundID/Master_FundID to the subreports so that it can group transactions by Master_FundID. ie- Jones1, Jones2, and JonesMaster need to be summarized.
However, when we do this, the query takes forever to execute because the transaction tables are huge and it appears to be reading the entire table for EACH evaluation of FundID. We think it's acraully evaluating 72 million times.
We know that properly constructed sql select statements is necessary, but have not been able to come up with a syntax that works.
Any help would be greatly appreciated.
Thanks
FundID Master_FundID
JonesMaster null
Jones1 JonesMaster
Jones2 JonesMaster
The Main report needs to pass the FundID/Master_FundID to the subreports so that it can group transactions by Master_FundID. ie- Jones1, Jones2, and JonesMaster need to be summarized.
However, when we do this, the query takes forever to execute because the transaction tables are huge and it appears to be reading the entire table for EACH evaluation of FundID. We think it's acraully evaluating 72 million times.
We know that properly constructed sql select statements is necessary, but have not been able to come up with a syntax that works.
Any help would be greatly appreciated.
Thanks