0
With INNER JOIN
you only recover what exists in the two tables, ie only those that carried out some commercialization.
In your case use LEFT OUTER JOIN
:
SELECT CR.nome, (CASE WHEN C.matriculaCorretor IS NULL THEN 'Não' ELSE 'Sim' END) AS status
FROM corretor as CR
LEFT OUTER JOIN comercialização as C
ON CR.matricula = C.matriculaCorretor;
All brokers with indication whether or not they were commercialized.