MySQL Join of 2 tables satisfying multiple join rules
I'm trying to figure out how to perform a pretty complex join on 2 tables that satisfy multiple rules. I'm using mysql 8. Here is some sample SQL to work with: create table person ( id integer primary key name…