我有一个显示如下记录的存储过程。
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中看起来不错?
答案 0 :(得分:0)
考虑到您显示的结果集,我相信您只需在水晶报表中添加 ParentAccountID 组即可达到要求。在组标题中,您可以在“组名称”列前添加列 PArentAccountname 列。这样做会给你想要的输出。我希望这有帮助!