我正在水晶报表中寻找 Group1total 的值。我的背景更集中在 SQL 上,我试图确定以下背后的逻辑:
//{@Group1total}
whileprintingrecords;
numbervar group1cost
//{@Group1cost}
whileprintingrecords;
numbervar group1cost := group1cost + {@group2total}
//{@Group2total}
whileprintingrecords;
numbervar group2cost
//{@Group2cost}
whileprintingrecords;
numbervar group2cost := group2cost + {@group3total}
//{@Group3total}
whileprintingrecords;
numbervar group3cost
//{@Group3cost}
whileprintingrecords;
numbervar group3cost := group3cost + {@group4total}
//{@Group4total}
whileprintingrecords;
numbervar group4cost
//{@Group4cost}
whileprintingrecords;
numbervar group4cost := group4cost + {XVR_projectcostbudget.cost_budget}
我注意到在 SQL 中简单地对 XVR_projectcostbudget.cost_budget 求和并不会产生与 Crystal Report 相同的结果。有任何想法吗?
谢谢!