English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Example, in a database
book name author name
--------------------------------------------------
learning java someone
learning java 2 someone

In this example learning java and learning java 2 are almost nearer i want to find these type of duplicates with spelling mistakes also.

Is there any way to find these type of duplicates in Mysql or Oracle databases.

2006-06-06 22:40:03 · 3 answers · asked by Mahender.K 2 in Computers & Internet Programming & Design

3 answers

Fetch All Them To an Array and work on Array

2006-06-07 03:06:32 · answer #1 · answered by Spitrabergâ?¢ 4 · 0 0

You will need to do a match on words. Set a minimum count of say word count -1 or 2 to indicate a possible duplicate. Also consider the word position. A position equal is a match. A position of plus 1 is also a match.

You will have to decide on the rules.

learning java /match1 pos 1, match 2, pos 2, no match/match
learning java 2/
learning vb/match 1, pos 1, no match/no match

2006-06-07 05:56:43 · answer #2 · answered by AnalProgrammer 7 · 0 0

Not an easy job.. :(

hope SOUNDEX( ) function will work for you... Try ur luck

or you can also use DIFFERENCE function

2006-06-07 05:49:24 · answer #3 · answered by Heman 2 · 0 0

fedest.com, questions and answers