Skip to main content
adicionou 29 caracteres ao conteúdo
Fonte Link

função listagg resolve

select paciente, clinica , listagg(procedimento, ' - ') within group (order by procedimento) procedimento from tabela group by paciente, clinica

select paciente
     , clinica
     , listagg(procedimento, ' - ') within group (order by procedimento)   procedimento
from tabela
group by paciente, clinica

https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions089.htm#SQLRF30030

função listagg resolve

select paciente, clinica , listagg(procedimento, ' - ') within group (order by procedimento) procedimento from tabela group by paciente, clinica

https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions089.htm#SQLRF30030

função listagg resolve

select paciente
     , clinica
     , listagg(procedimento, ' - ') within group (order by procedimento)   procedimento
from tabela
group by paciente, clinica

https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions089.htm#SQLRF30030

Fonte Link

função listagg resolve

select paciente, clinica , listagg(procedimento, ' - ') within group (order by procedimento) procedimento from tabela group by paciente, clinica

https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions089.htm#SQLRF30030