Holas I have the following query in SQL Server:
SELECT P.ProyId, P.ProyCodigoSNIP, P.Proyecto, E.EtapaAbr
FROM PROYECTO AS P, PROYECTO_ETAPA AS PE, ETAPAS AS E
WHERE P.ProyId=PE.ProyId AND PE.ProyEtapa=E.EtapaId
As you can see, I consult 3 tables, but the results are duplicated:
Could you please support me in what I should include or modify my query so that they do not appreciate the duplicate records. Thanks in advance.