I am new to SQL and ask a question about matching names from two columns located inside a table:
Let's say I want to use the soundex () function to match two columsn. If I use this query:
SELECT * FROM tablename WHERE SOUNDEX(column1)=SOUNDEX(column2);
a string is returned if two names inside this string match. Now I would also like to get these name matches between columns 1 and column2 that are not on the same row. Is there a way to automate the procedure in which each name from column 1 is compared with each name from column 2?
Thank:)
ps: If someone could point me towards the n-gram / bi-gram matching algorithm, which is easy for noob to implement in mysql, that would be nice too.
source
share