您好我有一个查询,我需要删除或格式化代码的输出显示。请看下面:
询问:
select rfc."NUMBER",
ag.current_pending_groups
from smspadm.cm3rm1 rfc, smspadm.tv_approval_vw appr, smspadm.approvala1 ag
Order By rfc."NUMBER"
当前结果:
NUMBER CURRENT_PENDING_GROUPS
C301609 Comm/AT&T Vert DCAB
C302023 Collections DCAB
C302023 Comm/AT&T Vert DCAB
C302023 Fin-D2C-DNB DCAB
C302023 Interactive Recording DCAB
C302103 Collections DCAB
C302103 Wintel Server DCAB
C302103 Fin-D2C-DNB DCAB
C301813 GTHRA Vert DCAB
C301813 Tech Vert DCAB
期望的结果:要么:
NUMBER CURRENT_PENDING_GROUPS
C301609 Comm/AT&T Vert DCAB
C302023 Collections DCAB, Comm/AT&T Vert DCAB, Fin-D2C-DNB DCAB
C302103 Collections DCAB, Wintel Server DCAB, Fin-D2C-DNB DCAB
C301813 GTHRA Vert DCAB, Tech Vert DCAB
或者应该是这样的:
NUMBER CURRENT_PENDING_GROUPS
C301609 Comm/AT&T Vert DCAB
C302023 Collections DCAB
Comm/AT&T Vert DCAB
Fin-D2C-DNB DCAB
Interactive Recording DCAB
C302103 Collections DCAB
Wintel Server DCAB
Fin-D2C-DNB DCAB
C301813 GTHRA Vert DCAB
Tech Vert DCAB
我应该使用什么查询来获得这个结果?