View Single Post
Old 12-07-2012, 07:43 PM   PM User | #12
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,741
Thanks: 4
Thanked 2,465 Times in 2,434 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Just like MySQL you need to group by in order to use the wm_concat or listagg.
So for an example with just the intermediate table:
Code:
SELECT p.projectid, WM_CONCAT(d.devname)
FROM ProjectDeveloper pd
INNER JOIN Developer d ON d.devid = pd.devid
INNER JOIN Project p ON p.projectid = pd.projectid
WHERE p.projectid = {APROJECTID}
GROUP BY p.projectid
I think something like that would work.
I really should go through my books again anyway; I've forgotten how interesting oracle is.
Fou-Lu is offline   Reply With Quote