I got the output with the same name and same soundex
value, but I want the result which has similar name and same soundex
value.
Can anyone help me to do this?
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It only takes a minute to sign up.
Sign up to join this communityI got the output with the same name and same soundex
value, but I want the result which has similar name and same soundex
value.
Can anyone help me to do this?
You can use a window function for this:
select *
from (
select name,
count(*) over (partition by soundex(name)) as cnt
from poi
) t
where cnt > 1;