Mysql – Find a group of names that share columns and then for each other name from group find in which other group it appears
Given the following table1 schema: +---------+-----------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +---------+-----------------+------+-----+---------+----------------+ | ID | int | NO | PRI | NULL | auto_increment | | NAME | bigint unsigned | NO…