Postgresql – Trying to get all related records when at least one matches
I have a photos table, a tags table, and a bridge table called photos_tags. Imagine there's a photo which has been tagged with dog, cat, and bird. This means that there'll be 1 record in photos, 1 record in tags,…