Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sql

Author  Topic 

kassish
Starting Member

1 Post

Posted - 2010-03-16 : 09:06:34
I'm using sql server 2000 and I wanna to record diseases with their symptom in my table. since one disease can have multiple symptoms and one symptom can appear in many disease how can i create table for them?

thank U for your help

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-03-16 : 09:21:31
you can create a disease table with diseaseid, description to store diseases, symptom table with symptomid,description to store symptoms and then a relation table diseasesymptoms with diseaseid,symptomid to represent the many to many relationship between them

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -