I am trying to create a symptom checker similar to WebMD where user inputs their symptoms and based on the input it suggests the disease. I have two tables, one containing all the symptoms and the other containing all the diseases. But I have no idea how to associate these two tables. I can go for the following approach;
+-----------------+----------+----------+----------+--------+----------+
| Disease | Symptom1 | Symptom2 | Symptom3 | Gender | AgeGroup |
+-----------------+----------+----------+----------+--------+----------+
| Some Disease | Yes | No | Yes | All | 19-35 |
| Another Disease | No | Yes | Yes | Male | All |
+-----------------+----------+----------+----------+--------+----------+
But it is redundant as I have to include all the records in the "Symptom" table as a column in this table and There will be issues when I have to add a new symptom. So is there any better way to organize this? Or is there any better alternative approach (third party APIs?) to achieve this?