【发布时间】:2018-02-09 21:07:53
【问题描述】:
以下是一个例子:
Table A
project Name amount detail department supervisor
1234 angel 200 water utility you
234 B 200 house retail me
235 C 400 air environment where
1234 angel 200 water department son
234 B 200 house retail me
235 C 400 treat environment where
1234 angel 200 water utility you
234 B 200 house retail me
235 C 400 air environment where
SQL 的输出应该是 -
project Name amount detail department supervisor
1234 angel 200 water utility you,son
234 B 200 house retail me
235 C 400 air,treat environment where
删除重复类型也不同..
好吧,我尝试使用 LISTAgg,但问题是我需要按项目对其进行分组,并且不想将其分组为我的详细信息和详细信息列,但我需要一个不同的值来详细传递,主管列希望有人可以帮助
【问题讨论】:
-
我认为行
1234 angel 200 water department son是1234 angel 200 water utility son,不是吗?