I have three tables:
I need to bring this PK_Candidate into the Enrollment table by doing a JOIN with the Enem table, but how do I do that if Candidate and Enem are not directly related to a unique code, just for information that repeats itself as sex?
I tried to relate Candidate and Enem by another table that both have in common, which would be Municipality, but also did not obtain the expected result, which would be the registration number without repetition followed by the desired data.