I'm trying to remove all rows from a database that duplicate an int (named user_id) in order to keep just the first occurrence. Not sure why my attempts didn't work, and would like an explanation of how you solved the problem even more than a solution.
My attempt (and sample data) http://sqlfiddle.com/#!18/9f6fc/5
End goal:
user_id, PAios_AccountId
123 a
223 b