Not sure how accurate my question title is but let me explain a little better.
I have two tables: artists, releases
table artist
artist_id,
artist_name
table release
release_id,
release_artist_ids,
release_name
There are more column names, but these are the ones involved in my problem.
release_artist_ids can contain one or more artist IDs that correspond to the artist table. If more than one artist features on the same release_id then I had comma separated the IDs.
So an example release row:
1 -- 2,5 -- Example Release
What I would like to do is list the releases and join the artist table to fetch the artist names involved in the release.
I managed to join using IN (release.release_artist_ids) but this only brings back one artist name. I would like to merge all involved artists into one returned column, separated by a pipe so I can format later on.