I have table like this one:
I would like to all rows, but if there is user_id 5
if this case, override other rows which have no user_id.
I tried both with MAX(user_id) and GROUP BY country_name, but it still returns, wrong results.
Final result I'm expecting: