4

is it possible to concat the result of an subquery with oracle?

if this subquery for an view:

  (SELECT s.name
        FROM
            app_shared_servers ass
        LEFT JOIN servers s
            ON (s.srv_id = ass.srv_id) WHERE ass.app_id = a.APP_ID) SHARED_SERVERS

Which returns a list of servernames associated with some kind of system. I need them to display like "Server, Server2, Server3" inside the view.

Any ideas?

Jason Aller
  • 3,475
  • 28
  • 40
  • 37
opHASnoNAME
  • 19,486
  • 25
  • 95
  • 139

1 Answers1

4

this looks like a string aggregation question, see these questions on SO for a description of available methods:

Community
  • 1
  • 1
Vincent Malgrat
  • 65,227
  • 9
  • 113
  • 167