Maybe it's a dumb question, but imagine having a table with fields like:
wholename, lastname, firstname, dateOfBirth
Now I want to search that table based on user input, but I would like to give a match % to the result. Meaning:
If lastname + firstname + dateOfBirth are all found in the database matchPrct = 100. If lastname + dataofBirth are found in the databse matchPrct = 80. And a few other rules (With other words the field matchPrct is an auto generated field which is not really in the db).
SQL for what I would like to achieve is:
SELECT * FROM table
WHERE firstname="%mike%" AND lastname="%tysson%" AND dateOfBirth="01/01/2012"
(create matchPrct=100) OR ....
Hope what I mean is clear.