There are two tables between which you need to create a many-to-many relationship:
CREATE TABLE my_contacts ( contact_id INT NOT NULL AUTO_INCREMENT, last_name VARCHAR(30), first_name VARCHAR(20), email VARCHAR(50), gender CHAR(1), birthday DATE, PRIMARY KEY (contact_id) ); CREATE TABLE interests ( int_id INT NOT NULL AUTO_INCREMENT, interest VARCHAR(20), PRIMARY KEY (int_id) ); For many-to-many communications, you need to create an additional table:
CREATE TABLE contact_interest ( contact_id INT NOT NULL, int_id INT NOT NULL ); How to create all the links in the additional table? You need to make the two columns that make up the additional table be a composite primary key, as well as foreign keys.