Hey Guys, Junior DB2 DBA here
An interesting issue im having where i have been asked to return a single string containing all of the codes associated with a specific ID.
So Data could be (Single table)
ID Code
--- -------
1 ABC
2 ABF
3 CDE
1 DLE
1 PFS
And say the request was for ID = 1 the desired result is to have the data look like.
ID Code
-- -------
1 ABC, DLE, PFS
I have Googled my heart out and all i can find is "Recursive should work" but have yet been able to find an example.
I have seen a few on these forums specifically this one
Combine Multiple Columns into single Coma seperated string result.
But am having troubles converting this into what im after as i dont quite understand the logic.
IF anyone could help me out even with a starting point i would be greatful.
Cheers