In Mysql I have the table usuario
, with the fields ID
and CPF
:
IreceivedalistofsomeCPFsfromtheclientandwhatIneed:
SeewhichoftheseusersisNOTintheusuario_gerenciamento
table,theproblemisthattheusuario_gerenciamento
tabledoesnothavetheusers'CPFs,buttheirIDs,likethis:
That is, this query I need to do should list the 2
and 6
IDs, how do I? I tried with LEFT JOIN
and NOT IN
, but it does not return right.