I have 2 tables.
login (login_id primary key
Email varchar(254) not null
Password varchar(20) not null)
and
registration(
id PK
Email
password
name
... etc
)
I m trying to set email of login as foreign key and registration(email) as references. but I m not able to do it ALTER TABLE login ADD FOREIGN KEY(email) REFERENCES registraion(email);
I m using it for a project so that i cud match the login and registraion email while logging in as user. can someone plz help