2
I have the following situation: in a MEDICAL CONSULTATION I may have one or more SYMPTOMS. Then I have a CONSULTA_SINTOMA table, making the link between CONSULTATION and SYMPTOM. A disease can be identified by one or more symptoms, so I have a DON_SINTOMA table making the link between DISEASE and SYMPTOM.
My problem: I can get in the QUERY table all the ids of symptoms presented in a query. But how can we make sure that we know all the possible diseases? For example: if the symptoms presented in a consultation are: 1, 2 and 3. How to know which diseases are identified by these symptoms?
You want the diseases with the 3 symptoms, or at least one of the 3?
– bfavaretto
With the 3 symptoms.
– AllexandreJr
@Allexandrejr take a look at my amendment
– Maicon Carraro