I want to find the similar for an existing row according to the value of a column. I try to explain by an example.
----------------------------
id | name | username
----------------------------
1 | Ahmet | amini
----------------------------
2 | Nima | azimzadeh
----------------------------
3 | Akbar | amiini
----------------------------
I have a username
value like samins and what I want is fetch row 1
and row 3
as similars of samins.
So I want a result like this:
----------------------------
id | name | username
----------------------------
1 | Ahmet | amini
----------------------------
3 | Akbar | amiini
----------------------------
Is there any way to do this with MySQL?