Let's say I have Offices table:
[pre]
ID(PK) Office
1 Office One
2 Office Two
3 Third Office
4 Director
5 Office of my Boss
[/pre]
and I have another table where - among other information - I need to keep the data of (1) which office requested some information and (2) which office provides the information. Sometimes it is the same office, and sometimes not.
So if I have Another table:[tt]
ID (PK)
SomeField
Office_Request
AnotherField
Office_Info
SomeField
[/tt]
I know I can set [tt]Another.Office_Request[/tt] to be FK to [tt]Office.ID[/tt] field. But I also need to have the same for [tt]Another.Office_Info[/tt], but how can I assign 2 fields to be FK to one PK in one table?
I know I can set second table with Offices, but I don’t think that’s a good idea to have 2 tables with the same information.
So, how should I do it?
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.