Sql Query:
select Song.name as Song, Band.name as Band
from Song join BandOnSong on Song.Id = BandOnSong.songId
join Band on BandOnSong.bandId = Band.Id;
Result:
Song Band
Live Forever Oasis
Penny Lane The Beatles
Penny Lane Test
Where is My Mind Pixies
Expected Result:
Song Band
Live Forever Oasis
Penny Lane The Beatles, Test
Where is My Mind Pixies
How can I get the expected result? I tried using a group by on Song.name but I got an error doing that.