Click here to Skip to main content
15,920,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi:
please help:
i have the following tables
desease_name=a,b,c,.....
symptom_list=a1,s2,d1......
then i want to normalize the tables and i want sql query command used to retrive the disease name for specific symptom input
""""""any information that is usefull for my question is ok!"""""
<<<<<<<thank u="" for="" u'r="" advice="">>>>>
Posted

Here[^] is an article on the basics of database normalisation.
 
Share this answer
 
Please buy a good book to learn about databases. It will help you in Designing databases, writing queries, etc.

For the query you posted, here is one of the start that you can take:
MstDisease
Column1 Column2
1 Disease-A
2 Disease-B
3 Disease-C

MstSymptom

Column1 Column2
1 a1
2 a2
3 b1
4 b2
5 c1
6 c2
TrnDiseaseSymptom
Column1 Column2
(MstDisease ID) (MstSymptom ID)
1 1
1 4
2 2
2 4
2 6
3 1
3 3
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900