I have an unusual query, which got me stuck right now
Table Fields are:
id bigint 20
name varchar 255
desc text
There are many records with same name and desc, but desc have some extra spaces in between words
like
1 't1' 'hello world'
2 't2' 'hello world'
I need to find those rows that have similar data
How can I find these, thanks.
This is pretty close. Assuming:
Then this query:
Gets you the duplicate rows. It fails if you have “Helloworld” (i.e. with no space) and you don’t want that to match.