Postgresql – Filter rows by foreign key, but keep foreign data unchanged
Let's say I have a bands and a genres table who are connected through a join table called j_band_genres. Combined, this is my data: ID Names Genres 1 The Beatles Pop, Rock 2 The Rolling Stones Rock 3 Boney M.…