I tried to add a foreign key constraint to a table, but failed. Please help . thankscreate table shippingAddress (name varchar(20), zip varchar(5));create table person (name varchar(20), age int);alter table person add constraint fk_name Foreign Key(name) REFERENCES shippingAddress(name)
error is There are no primary or candidate keys in the referenced table 'shippingAddress' that match the referencing column list in the foreign key 'fk_name'.