Hi<br>
I am trying to run a query that will return rows which are actually duplicate but entered in the database in a different format.<br>
For eg:<br>
David Whitter R<br>
David R Whitter<br>
I used the soundex function , but did not return rows as expected.<br>
It returned only duplicate rows.<br>
The code i used is below<br>
select p.full_name,count(*)<br>
from person p<br>
where soundex(full_name)in (select soundex(p1.full_name) from person p1)<br>
group by p.full_name<br>
having count(*) >1 <br>
order by 1<br>
Any help is appreciated<br>
Thanks<br>
I am trying to run a query that will return rows which are actually duplicate but entered in the database in a different format.<br>
For eg:<br>
David Whitter R<br>
David R Whitter<br>
I used the soundex function , but did not return rows as expected.<br>
It returned only duplicate rows.<br>
The code i used is below<br>
select p.full_name,count(*)<br>
from person p<br>
where soundex(full_name)in (select soundex(p1.full_name) from person p1)<br>
group by p.full_name<br>
having count(*) >1 <br>
order by 1<br>
Any help is appreciated<br>
Thanks<br>