1
Good night,
I have below the search in the database, but it returns me error or does not work on line 4 where it says "JOIN contracts co ON c.email != co.email", can you do otherwise, or improve the search? Thank you
SELECT os.osID, c.nome, c.email, os.idioma, os.dataAtualizacao
FROM os
JOIN cadastroCliente c ON os.idcliente = c.cadastroClienteID AND c.email != ''
JOIN contratos co ON c.email != co.email
WHERE os.status = '1'
AND os.respondido = '1'
AND os.emailAutRecuperar1 = '0'
AND os.dataAtualizacao < CURRENT_DATE()-3
GROUP BY osID
which error appears?
– rray
In reality it does not give an error, but with the without that part "JOIN contracts co ON c.email != co.email" shows the same number of results...
– Diego Marquez