I searched a lot and nothing could fit me. I am looking for a way to select or delete rows without removing everything. Check below to understand!
username ip_address
a 127.0.0.1
b 127.0.0.2
c 127.0.0.3
d 127.0.0.4 < duplicate keep
d 127.0.0.4 < duplicate remove
e 127.0.0.5
d 127.0.0.4 < duplicate remove
What it should select/delete:
username ip_address
d 127.0.0.4
d 127.0.0.4
EDIT:
I have found a solution by making a new temporary table and duplicating the rows there.