I have two tables (tblPolicyMap and tblBusiness) and the fields within it are:
1. tblPolicyMap
PolicyID (PK)
PolicyDetail
2. tblBusiness
BusinessID (PK)
HLProcessName
Business_Functi ons
One policy could affect more than 1 HLProcessName and Business_Functi ons.
Also, One Business_Functi on / HLProcessName could have multiple policy.
Therefore, this is a many to many relationship.
My questions are:
a. As Policy detail has n-n relationship with both HLProcessName and Business_Functi ons, should I create 2 n-n relationship (Policy - HLProcessname) and (Policy - Business-Functions)? or it is it still ok to have only two tables as above?
b. With the assumption that only two tables will suffice (as above), I have created a junction table (tblPolicy_Busi ness) with fields - PolBizID (PK), PolicyID (FK)and BusinessID (FK). I do not know how to populate the junction table, What approach should I take to populate the Junction table assuming that I have all the data in tblPolicyMap and tblBusiness?
c.To add to the above, how should I create a form so that I can easily populate the junction table for new records?
Kindly advise.
1. tblPolicyMap
PolicyID (PK)
PolicyDetail
2. tblBusiness
BusinessID (PK)
HLProcessName
Business_Functi ons
One policy could affect more than 1 HLProcessName and Business_Functi ons.
Also, One Business_Functi on / HLProcessName could have multiple policy.
Therefore, this is a many to many relationship.
My questions are:
a. As Policy detail has n-n relationship with both HLProcessName and Business_Functi ons, should I create 2 n-n relationship (Policy - HLProcessname) and (Policy - Business-Functions)? or it is it still ok to have only two tables as above?
b. With the assumption that only two tables will suffice (as above), I have created a junction table (tblPolicy_Busi ness) with fields - PolBizID (PK), PolicyID (FK)and BusinessID (FK). I do not know how to populate the junction table, What approach should I take to populate the Junction table assuming that I have all the data in tblPolicyMap and tblBusiness?
c.To add to the above, how should I create a form so that I can easily populate the junction table for new records?
Kindly advise.
Comment