Hello Everyone,
I am new to the forums and you can check my intro thread to read a little about me and my background in that introductory post (can't give you the hyperlink as I am under 10 posts
). Anyway, I am creating a database (version 2007, if it matters) that will house:
· Cardiologists
· The Facilities they work
· The services they provide
· The counties where the facilities are located
As such, these are the tables I believe I should have:
· Physician (Cardiologist)
· Facility
· County
· Service
As I am still understanding DB design “in the real world” I would like confirmation on the creation of the tables and the relationships they have. I have attached a screenshot of the tables (though I haven’t designated the relationships yet). So I want to know what you think of the table design? Also, about Foreign Keys. A physician will typically have more than one service. So should each Service in the Physician Table (as a Foreign Key) be linked to the Service Table? Thanks in advance.
A down the road question: I have read that the ID Number of a table should be the primary key even though it is easier to understand the DB if I could use the actual name that the ID refers to. How do I get around that? And please feel free to nitpick anything (like naming conventions and what-not) or general tips. I am here to learn from the more experienced so I will gladly accept any suggestions and constructive criticism.
I am new to the forums and you can check my intro thread to read a little about me and my background in that introductory post (can't give you the hyperlink as I am under 10 posts
· Cardiologists
· The Facilities they work
· The services they provide
· The counties where the facilities are located
As such, these are the tables I believe I should have:
· Physician (Cardiologist)
· Facility
· County
· Service
As I am still understanding DB design “in the real world” I would like confirmation on the creation of the tables and the relationships they have. I have attached a screenshot of the tables (though I haven’t designated the relationships yet). So I want to know what you think of the table design? Also, about Foreign Keys. A physician will typically have more than one service. So should each Service in the Physician Table (as a Foreign Key) be linked to the Service Table? Thanks in advance.
A down the road question: I have read that the ID Number of a table should be the primary key even though it is easier to understand the DB if I could use the actual name that the ID refers to. How do I get around that? And please feel free to nitpick anything (like naming conventions and what-not) or general tips. I am here to learn from the more experienced so I will gladly accept any suggestions and constructive criticism.