1
How to select different records between two tables
I tried to run the query with the query below; but it did not generate records;
SELECT
c1.cod_coletor,
c2.cod_coletor
FROM item_inventarios c1
INNER JOIN funcionarios c2
ON c2.cod_coletor = c1.cod_coletor
WHERE c1.cod_coletor != c2.cod_coletor
and c1.id_inventario='85'
I left my query available at this link http://sqlfiddle.com/#! 9/83a9dd/1
is calling by a column and then is running Where instead of the link, so it will certainly not get records.
– MauroAlmeida
@Mauroalmeida, My link column is also the value I want to check the difference. How could I run in the right way?
– Hugo Rutemberg