Greetings. I need a bit of advice from those who can help.
I'm working on a database with some many-to-many relationships and the head is getting a bit clouded!! I think I have the structure down but my problem may be queries...
In a nutshell, I'm working with three tables: Doctors, Hospitals, and Addresses. Using a php front-end to populate the database, I'm entering info as I come across it. I may one day enter a doctor and his address and the next day I may enter a hospital and its address. What I'd like to be able to do is query the database for relationships. I.e, query a doctor and find out if his address information is the same as a hospital address OR vice-versa. I may even need to query an address and see if there are any affiliated doctors/hospitals at that location.
Do I have my basic table structure correctly broken up and/or is this merely a query issue?
Thx!
FM
I'm working on a database with some many-to-many relationships and the head is getting a bit clouded!! I think I have the structure down but my problem may be queries...
In a nutshell, I'm working with three tables: Doctors, Hospitals, and Addresses. Using a php front-end to populate the database, I'm entering info as I come across it. I may one day enter a doctor and his address and the next day I may enter a hospital and its address. What I'd like to be able to do is query the database for relationships. I.e, query a doctor and find out if his address information is the same as a hospital address OR vice-versa. I may even need to query an address and see if there are any affiliated doctors/hospitals at that location.
Do I have my basic table structure correctly broken up and/or is this merely a query issue?
Thx!
FM