[sql] update query with join on two tables