T
Tanya
Hi
My understanding about foreign keys is that they are generally a primary key
in foreign table. The primary table primary key would be unique. In fact I
believe all keys should be unique????
The problem i am having is I have two tables
ChemicalsTbl
symbol - Text 8 Bytes long (primary key)
name - Text 25 Bytes
ReadingsTbl
symbol - Text 8 Bytes long (foreign key)
Readdate - Date/Time Default value today
Read1 - Decimal - Precision 10 - scale 3 - Decimal 3
Read2 "
Read3 "
Read4"
Next... After inputing data into both tables I have duplicates in
ReadingsTbl.symbol (foreign key)
Therefore I am unable to ensure referential integrity.
My question is how do I get around this?
I have tinkered with indexing and not sure where else to look.
If anyone could help I would be greatful.
Regards
Tanya
My understanding about foreign keys is that they are generally a primary key
in foreign table. The primary table primary key would be unique. In fact I
believe all keys should be unique????
The problem i am having is I have two tables
ChemicalsTbl
symbol - Text 8 Bytes long (primary key)
name - Text 25 Bytes
ReadingsTbl
symbol - Text 8 Bytes long (foreign key)
Readdate - Date/Time Default value today
Read1 - Decimal - Precision 10 - scale 3 - Decimal 3
Read2 "
Read3 "
Read4"
Next... After inputing data into both tables I have duplicates in
ReadingsTbl.symbol (foreign key)
Therefore I am unable to ensure referential integrity.
My question is how do I get around this?
I have tinkered with indexing and not sure where else to look.
If anyone could help I would be greatful.
Regards
Tanya