N
nezos
Greets, I have the following problem:
1 Table holds information (StreetID, StreetName, PostalCode, Area) StreetID=PK
Unique values only in StreetID
2 Table holds information (...., StreetID, PostalCode, Area,......)
AutoNumberID=PK
The 1st table has a one to many relation to the 2nd table.
The problem is how can i make sure that the combination of StreetID,
PostalCode, Area entered in the 2nd table will exist in the 1st.
I tried setting primary keys StreetName, PostalCode, Area but i cannot force
referential integrity because these fields are not uniquely indexed.
Thanx for your answers
1 Table holds information (StreetID, StreetName, PostalCode, Area) StreetID=PK
Unique values only in StreetID
2 Table holds information (...., StreetID, PostalCode, Area,......)
AutoNumberID=PK
The 1st table has a one to many relation to the 2nd table.
The problem is how can i make sure that the combination of StreetID,
PostalCode, Area entered in the 2nd table will exist in the 1st.
I tried setting primary keys StreetName, PostalCode, Area but i cannot force
referential integrity because these fields are not uniquely indexed.
Thanx for your answers