Hello,
I have an excel spreadsheet where I have the data. The columns I am interested in are:
Ref_no, Rule_detail, Location1, Location2, Location3.
In my access db, I have three tables with fields:
1. tbl[Rule_details]
RuleID
Ref_no,
Rule_detail
2. tbl[Location]
LocationID
LocationName
The above two tables are linked as many to many.
3.Junction table[RuleDetail_Loca tion]
RuleDetail_Loca tionID
RuleID
LocationID
I have uploaded the data in the tables 1 and 2. Now I have to populate the Junction table [RuleDetail_Loca tion].
From the spreadsheet, I obviously know how are the locations linked to a Ref_no.
I am struggling in my head about how to populate the Junction table using SQL.
Could someone please help?
Many thanks,
SG
I have an excel spreadsheet where I have the data. The columns I am interested in are:
Ref_no, Rule_detail, Location1, Location2, Location3.
In my access db, I have three tables with fields:
1. tbl[Rule_details]
RuleID
Ref_no,
Rule_detail
2. tbl[Location]
LocationID
LocationName
The above two tables are linked as many to many.
3.Junction table[RuleDetail_Loca tion]
RuleDetail_Loca tionID
RuleID
LocationID
I have uploaded the data in the tables 1 and 2. Now I have to populate the Junction table [RuleDetail_Loca tion].
From the spreadsheet, I obviously know how are the locations linked to a Ref_no.
I am struggling in my head about how to populate the Junction table using SQL.
Could someone please help?
Many thanks,
SG
Comment