<property name="xxDescribtionNumbers" formula="(
select nvl(listagg(A.NUMBER, ', ') within group (order by A.NUMBER),' ')
from ENTER E
left outer join ADRESS A on A.ID = E.ADRESS_ID
where E.BUILDING_ID = ID
)" />
这将列出数字,但可以包含重复项,但我不想要任何重复项。
答案 0 :(得分:1)
您可以通过删除子查询中的值来执行此操作:
select coalesce(listagg(va.CISLO, ', ') within group (order by va.CISLO), ' ')
from (select distinct a.cislo
from VCHOD V left join
ADRESA A
on A.ID = V.ADRESA_ID
where V.BUDOVA_ID = ID
) va;