![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hey all- I am working on a half-finished database designed by someone else. One of the jobs of the DB is to manage contacts (customers, vendors, etc.). The relational structure that was in place when I began work on this project was as follows: A "Company" table related to many "Location" tables, which in turn are each related to many "Contact" tables. Seems pretty straightforward. The problem is, one contact should be able to be associated with multiple locations. As an example, A person may be associated with one shipping location, and a different location for billing. Or, a single contact may sometimes require shipments to their offices in NYC, and sometimes to their home in CT. With the current structure, this would require two Contact records with the same name, each associated with a separate location. Unless I'm missing something. My question: Is there something inherently wrong with this structure, or is there something wrong with the way I'm thinking about it? I'm leaning towards the latter, as this FileMaker solution, although not finished, was designed by a well known and respected consulting firm. So can I make this work, or do I have to change the structural design? Thanks in advance and for all your previous help, Nate |
#3
| |||
| |||
|
|
Nate, sorry to say there is something wrong with the way you are thinking. basicaly you need a relation for each line you discribe. OR create a one to many relationship that uses a linktable. Generaly I would choose the linktable option, but this is more complex to set up. Eitherway I hope your table do have unique ID's that can be used to link the tables. Ursus "NScheffey" <NSchef... (AT) gmail (DOT) com> schreef in berichtnews:1173451500.037419.182090 (AT) q40g2000cwq (DOT) googlegroups.com... Hey all- I am working on a half-finished database designed by someone else. One of the jobs of the DB is to manage contacts (customers, vendors, etc.). The relational structure that was in place when I began work on this project was as follows: A "Company" table related to many "Location" tables, which in turn are each related to many "Contact" tables. Seems pretty straightforward. The problem is, one contact should be able to be associated with multiple locations. As an example, A person may be associated with one shipping location, and a different location for billing. Or, a single contact may sometimes require shipments to their offices in NYC, and sometimes to their home in CT. With the current structure, this would require two Contact records with the same name, each associated with a separate location. Unless I'm missing something. My question: Is there something inherently wrong with this structure, or is there something wrong with the way I'm thinking about it? I'm leaning towards the latter, as this FileMaker solution, although not finished, was designed by a well known and respected consulting firm. So can I make this work, or do I have to change the structural design? Thanks in advance and for all your previous help, Nate |
#4
| |||
| |||
|
|
Nate, sorry to say there is something wrong with the way you are thinking. basicaly you need a relation for each line you discribe. OR create a one to many relationship that uses a linktable. Generaly I would choose the linktable option, but this is more complex to set up. Eitherway I hope your table do have unique ID's that can be used to link the tables. Ursus "NScheffey" <NSchef... (AT) gmail (DOT) com> schreef in berichtnews:1173451500.037419.182090 (AT) q40g2000cwq (DOT) googlegroups.com... Hey all- I am working on a half-finished database designed by someone else. One of the jobs of the DB is to manage contacts (customers, vendors, etc.). The relational structure that was in place when I began work on this project was as follows: A "Company" table related to many "Location" tables, which in turn are each related to many "Contact" tables. Seems pretty straightforward. The problem is, one contact should be able to be associated with multiple locations. As an example, A person may be associated with one shipping location, and a different location for billing. Or, a single contact may sometimes require shipments to their offices in NYC, and sometimes to their home in CT. With the current structure, this would require two Contact records with the same name, each associated with a separate location. Unless I'm missing something. My question: Is there something inherently wrong with this structure, or is there something wrong with the way I'm thinking about it? I'm leaning towards the latter, as this FileMaker solution, although not finished, was designed by a well known and respected consulting firm. So can I make this work, or do I have to change the structural design? Thanks in advance and for all your previous help, Nate |
#5
| |||
| |||
|
|
On Mar 9, 1:21 pm, "Ursus" <ursus.k... (AT) wanadoo (DOT) nl> wrote: Nate, sorry to say there is something wrong with the way you are thinking. basicaly you need a relation for each line you discribe. OR create a one to many relationship that uses a linktable. Generaly I would choose the linktable option, but this is more complex to set up. Eitherway I hope your table do have unique ID's that can be used to link the tables. Ursus "NScheffey" <NSchef... (AT) gmail (DOT) com> schreef in berichtnews:1173451500.037419.182090 (AT) q40g2000cwq (DOT) googlegroups.com... Hey all- I am working on a half-finished database designed by someone else. One of the jobs of the DB is to manage contacts (customers, vendors, etc.). The relational structure that was in place when I began work on this project was as follows: A "Company" table related to many "Location" tables, which in turn are each related to many "Contact" tables. Seems pretty straightforward. The problem is, one contact should be able to be associated with multiple locations. As an example, A person may be associated with one shipping location, and a different location for billing. Or, a single contact may sometimes require shipments to their offices in NYC, and sometimes to their home in CT. With the current structure, this would require two Contact records with the same name, each associated with a separate location. Unless I'm missing something. My question: Is there something inherently wrong with this structure, or is there something wrong with the way I'm thinking about it? I'm leaning towards the latter, as this FileMaker solution, although not finished, was designed by a well known and respected consulting firm. So can I make this work, or do I have to change the structural design? Thanks in advance and for all your previous help, Nate Hmmm, maybe I didn't express myself clearly. There IS a relation in place for each line. Each table DOES have a unique ID which is used as a primary key. This is the way it is currently set up (not designed by me): Company: KP (primary key) Location: KP (primary key) kf_company (foreign key relating to company primary key) Contact: KP kf_location (foreign key relating to location primary key) This is the structure I'm talking about that I don't think is correct. You are saying that with this set-up I can relate a Contact to many Locations? How? Nate |
#6
| |||
| |||
|
|
Hmmm, maybe I didn't express myself clearly. There IS a relation in place for each line. Each table DOES have a unique ID which is used as a primary key. This is the way it is currently set up (not designed by me): Company: KP (primary key) Location: KP (primary key) kf_company (foreign key relating to company primary key) Contact: KP kf_location (foreign key relating to location primary key) This is the structure I'm talking about that I don't think is correct. You are saying that with this set-up I can relate a Contact to many Locations? How? Nate |
![]() |
| Thread Tools | |
| Display Modes | |
| |