S
SF
I have 5 tables as below:
tblProvinces
ProvinceID (PK)
ProvinceName
...
tblDistricts
DistrictID
ProvinceID (FK to tblProvince)
DistrictName
tblCommunes
CommuneID
CommuneName
DistrictID (FK to tblDistrict)
tblVillages
VillageID
Villagename
CommuneID (FK to tblCommune)
tblProject
ProjectID
ProjectName
ProvinceID
DistrictID
CommuneID
VillageID
ProjectCost
....
This work OK for a project for one single location (one province, district,
commune and village). Now my supervisor want to change the structure. He
wants a project would cover to one province, many districts and may or may
not have any communes information. I come up by adding another table as
below
tblProjectLocations
ProjectID
ProvinceID
DistrictID
CommuneID
I would appreciate advide from this group for the correct table structure.
Also with this tblProjectLocations table, I cannot enforced the relationship
to CommuneID.
SF
tblProvinces
ProvinceID (PK)
ProvinceName
...
tblDistricts
DistrictID
ProvinceID (FK to tblProvince)
DistrictName
tblCommunes
CommuneID
CommuneName
DistrictID (FK to tblDistrict)
tblVillages
VillageID
Villagename
CommuneID (FK to tblCommune)
tblProject
ProjectID
ProjectName
ProvinceID
DistrictID
CommuneID
VillageID
ProjectCost
....
This work OK for a project for one single location (one province, district,
commune and village). Now my supervisor want to change the structure. He
wants a project would cover to one province, many districts and may or may
not have any communes information. I come up by adding another table as
below
tblProjectLocations
ProjectID
ProvinceID
DistrictID
CommuneID
I would appreciate advide from this group for the correct table structure.
Also with this tblProjectLocations table, I cannot enforced the relationship
to CommuneID.
SF