I have a table users with existing data, and I upload updated data to a temporary table users_temp.
I am trying to create two queries, one to update name and department_id rows in users with data from users_temp on matching id.
And another to remove rows in users which don't have matching id in users_temp.
Please help.