I have a scheduling database, and I would like to find a way to select all future appointments that are similar because we have a lot of clients who double book themselves. I have been looking but I cant find a way to do quite what I want.
For example if I have the following rows I would like to be able to select those with the same language, a time within 15 minutes of each other, and with names that share > 70% of the same characters.
|Rec_id|Date_time |Language|App_name |
|1 |2014-03-15 12:40|Spanish |Ricardo |
|2 |2014-03-15 12:45|Spanish |Ricerdu |
|3 |2014-03-16 12:45|Tongan |Tuaffu |
|4 |2014-03-17 12:45|Korean |Kim |
|5 |2014-03-18 12:45|German |Biternof |
|6 |2014-03-18 12:32|German |Biterknof|
From the above data the records I would need are 1,2,5, and 6.