I have a database designed to diagnose a disease based on selected symptoms. I have had trouble making the diagnosis because my Symptoms fields have multiple values. The solution I have been able to almost figure out involves a query that generates all matches and I just need to group the matches, sort them from most common to least common, then I want to just return the top result for my query.
I have attached the database and you will be able to see, Query 1 and Query 2 don't work correctly. Query 3 returns multiple rows per patient and I just need to see the Common Name for the disease(s) that appears most. Eg. 1 row with First Name, Last Name, Diseases [Common Name].
Any help or advice is much appreciated - this is a project I am hoping use run through with my students.
Cheers,
MattDiagnosis Database Task1.zip