I am kind of newbie in Oracle. Got stuck in the below: I have the below 2 tables:
Site:
**SiteID|SiteName**
1 Sydney
2 Ne
I think I am close to it, just need a small help: I have created a function GetSiteName, which returns the site name against the SiteID. Now I am using the below xmlagg where in I need to call this function GetSiteName:
select PeopleID, rtrim (xmlagg (xmlelement (e, clint.GetSiteName(SiteID) || ',')).extract ('//text()'), ',') SITEIDS
from client.People group by PeopleID;/
Basically need help in calling the function from inside xmlagg, any thoughts?