For example, my personality match database has 1000 columns, with genre titles such as:
autoid | movie_genre_comedy | movie_genre_action | movie_genre_horror | more genres -->
23432 | 1 | 0 | 1 | 0
3241 | 0 | 1 | 1 | 0
64323 | 0 | 1 | 0 | 0
How do I match every row to the row with autoid 23432 so that the following table is produced:
autoid | movie_genre_comedy | movie_genre_action | movie_genre_horror | more genres -->
23432 | 1 | 0 | 1 | 0
3241 | 0 | 1 | 1 |
Note that the row with autoid 64323 is not there because it does not have any similar columns to the chosen row with autoid 23432.
The simplest way to do this is:
SELECT *
from genretable
WHERE movie_genre_comedy = 1
OR movie_genre_horror = 1
OR ........... and so on for up to 1000 parameters.