Don't return repeated ids and give priority to the second table – Mysql
I have the following tables: CREATE TABLE usuarios ( id INT, nome varchar ); INSERT INTO usuarios VALUES (1, 'Teste'), (2, 'Teste1'), (3, 'Teste2'), (4, 'Teste3'), (5, 'Teste4'), CREATE TABLE FichaColab( id INT, nomcompleto varchar ); INSERT INTO FichaColab VALUES…