REGISTRATION TABLE A Attributes: Code, name, type
TABLE NUMBER B
Attributes: Code, number
TABLE C PERSONNEL
Attributes: Code, gender
I need to bring the name and type information from table A with corresponding numbers from table B by filtering by the attributes "type" from table A and "gender" from table C.
Here is my query:
select A.NOME, B.NUMERO
from A
left join B on
A.codigo = B.codigo
where
A.tipo=B and
C.genero='Homem'