i need different name ids from both tables. the problem is that when i union there might still be duplicates