By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
First | Last | Relatives |
---|---|---|
Bob | Smith | Alice,Mary,Sally |
Alice | Smith | Bob,Mary,Sally |
Mary | Smith | Bob,Alice,Sally |
Andrew | Jones | Bob |
Sally | Smith | Bob,Alice,Mary |
Bob | Jones | Andrew |