2
In Mysql I have the table usuario
, with the fields ID
and CPF
:
I received from the client a list with some numbers and what I need:
See which of these users is NOT in the table usuario_gerenciamento
, the problem is that the table usuario_gerenciamento
I don’t have users' Cpfs, but their Ids, so:
That is, this query I need to do should list the Ids 2
and 6
, how to do? I tried with LEFT JOIN
and NOT IN
, but does not return right.
Fiddle link is not correct
– Kevin Kouketsu