0
In Mysql I have a table login, that shows who logged on to the system:
id | cod_usuario
After the site is ready and running the client passed me a list of cod_usuario that CAN log into the system, so I created a table can and I did that check every time someone logs in, who’s not on can can’t log in, no problem.
Now the customer wants to know who already logged in the system and who was not in the table can, how to make this check?
It would be something like:
SELECT cod FROM login
LEFT JOIN pode ON pode.cod_usuario = login.cod_usuario
But I don’t know how to get the ones on the table login and ARE NOT on the table can