-
1
- #1
I have a table with information on Facilities, and I have a Table of Management companies. I have joined them with a junction table for a many-to-many relationship.
SELECT
FROM [Facility Name] INNER JOIN ([Management Company] INNER JOIN [Management Company Junction] ON [Management Company].MC_ID = [Management Company Junction].[Management REF]) ON [Facility Name].[Facility ID] = [Management Company Junction].[Report REF];
Now here is where the problems lie. The facility table is already populated with facility information, and so if Management Table.
I have a third table not related to anything, that what incorrectly created which has the data i need. the table is designed like this:
Facility Mgt Comp 1 Mgt Comp 2 Mgt Comp3 ETC
========== ============ ============ =========== ====
There are 10 separate fields for Management companies. How properly deconstruct this table to setup the proper many-to-many relationship I am trying to create.
SELECT
FROM [Facility Name] INNER JOIN ([Management Company] INNER JOIN [Management Company Junction] ON [Management Company].MC_ID = [Management Company Junction].[Management REF]) ON [Facility Name].[Facility ID] = [Management Company Junction].[Report REF];
Now here is where the problems lie. The facility table is already populated with facility information, and so if Management Table.
I have a third table not related to anything, that what incorrectly created which has the data i need. the table is designed like this:
Facility Mgt Comp 1 Mgt Comp 2 Mgt Comp3 ETC
========== ============ ============ =========== ====
There are 10 separate fields for Management companies. How properly deconstruct this table to setup the proper many-to-many relationship I am trying to create.