I need a solution that compares any changes you've made to the products_csv table against the products table ( letter or number ) in some field.
I'm using the code below but only works for single records because if there are duplicate records in a loop does not answer.
$sql= "SELECT * FROM produtos_csv
WHERE produto_codigo NOT IN (SELECT produto_codigo FROM produtos)
OR produto_descricao NOT IN (SELECT produto_descricao FROM produtos)";
Sample registry change:
products_csv TABLE arrived with field produto_descricao='Bolas Azuis'
and in the TABLE products is with the field producto_descricao = 'Blue Ball'