Say I have a query like this:
SELECT * FROM my_table WHERE name = \"john doe\" AND phone = \"8183321234\" AND email = \"johndoe@yahoo.com\" AND address = \"330 s
I like the IF construct:
SELECT * FROM my_table WHERE ( IF(name = 'john doe', 1, 0) + IF(phone = '8183311234', 1, 0) + IF(email = 'johndoe@yahoo.com', 1, 0) + IF(address = '330 some lane', 1, 0) ) >= 3