I want to remove the last row because userid and friendwith column is duplicated.
friendshipid userid friendwith friendshipstatus
183 24 102 4
151 24 52 2
155 24 66 2
179 24 66 2
thanks.
if you want to keep the latest friendship id then do something like this
Or if you want to keep the oldest friendship id then do something like this