0

我有一个显示如下记录的存储过程。

AccountID     AccountName               Amount     ParentAccountID     ParentAccountName
ABI01         Cost of infrastructure A  1077665.4  INF                 Infrastructure
ABI02         Cost of infrastructure B  42000      INF                 Infrastructure
ABM01         Cost of Maintenance A     465900     MTN                 MAINTENANCE
ABM02         Cost of Maintenance B     3450000    MTN                 MAINTENANCE
ABO01         Cost of Operational A     110500     ABM02               Cost of Maintenance B

我想要一个水晶报告来显示这样的结果:

INF : Infrastructure

    ABI01   Cost of infrastructure A   1077665

    ABI02   Cost of infrastructure B   42000

MTN : Maintenance

    ABM01   Cost of Maintenance A   465900

    ABM02   Cost of Maintenance B   3450000

        ABO01   Cost of Operational A   110500

有可能实现吗?感谢您的帮助..顺便说一句,如何使桌子在 SO 中看起来不错?

4

1 回答 1

0

考虑到您显示的结果集,我相信您只需在水晶报表中放入一组ParentAccountID即可实现要求。在组标题中,您可以在组名称列前面添加列PArentAccountname列。这样做会给你想要的输出。我希望这有帮助!

于 2013-11-15T05:26:14.267 回答