The general form of a many-to-many relationship is to create three two-column tables (e.g. to relate favorite movies of members). Two tables are list of movies and members. In these two tables, we assign an auto_increment ID (which is primary key).Then storing relationship of these two IDs in the third table.
I wonder why we use ID for these two columns? We can have two one-column tables as lists of movies and persons; and then create the relationship table relating movies to persons as:
Fred Gladiator
Brian Godfather
Fred Godfather
The only disadvantage of this method is that searching integer-only table is easier to find relationships. Instead we have reduced two indexed columns.
Any idea?