0
Good afternoon, I’m new to the group I wanted to know where I’m going wrong...
I have a database search like this
**
SELECT * FROM Users INNER JOIN naturezanegocio ON Users.emaillogin = naturezanegocio.emaillogin
AND Users.paisorigem = '1'
AND Users.cidade = 'são paulo'
AND Users.estado = 'SP'
AND Users.numfuncionario > '0' < '10'
AND Users.registro = 'sim'
AND Users.investimento = 'sim'
AND Users.interesseparceria = 'sim'
AND Users.niveis_acesso_id = '0'
AND naturezanegocio.natureza IN ('2', '0', '0')
INNER JOIN tecnologia ON tecnologia.tecnologia IN ('5', '0', '0')
**
I need to return only the user who has all these requests, but he does not filter everything at once and instead table by table that ends up returning to me invalid users by not meeting all requirements...
where I went wrong?
This JOIN with TECHNOLOGY, you are not associating to anything of the query of Users and NATUREZANEGOCIO. One of the flaws is there.
– Jhonny Freire
I imagined it, but I couldn’t think of a solution to solve it, I would know how ?
– Rodrigo Tanci