0
Good evening. I have to add the natures according to each sector of the company, but it is not going with Count.
SQL:
SELECT examefuncionario.exameFunc_Natureza, setor.setor_Nome
FROM `funcionario`
JOIN examefuncionario ON examefuncionario.exameFunc_CodFuncionario = funcionario.CodFuncionario
JOIN setor on setor.CodSetor = funcionario.funcionario_CodSetor
WHERE `funcionario_CodEmpresa` = '274'
I wanted it to stay that way for example:
A D P Setor
2 1 5 Portaria/Limpeza
5 2 1 Montagem
Thank you very much. It worked right! Hugs, good night
– José Luis