5

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,541
  • 28
  • 38
  • 38
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143

1 Answers1

5

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

Community
  • 1
  • 1
Vincent Malgrat
  • 66,725
  • 9
  • 119
  • 171