The number of matches between two rows mysql
问题 So, this is the challenge: I have two tables: Etalon: +-----+-----+-----+-----+----+ | e1 | e2 | e3 | e4 | e5 | +-----+-----+-----+-----+----+ | 01 | 02 | 03 | 04 | 05 | +-----+-----+-----+-----+----+ And Candidates: +-----+----+-----+-----+-----+----+----+ | ID | c1 | c2 | c3 | c4 | c5 | nn | +-----+----+-----+-----+-----+----+----+ | 00 | 03 | 08 | 02 | 01 | 06 | ** | +-----+----+-----+-----+-----+----+----+ | 01 | 05 | 04 | 03 | 02 | 01 | ** | +-----+----+-----+-----+-----+----+----+ | 02