/*Adding in Foreign key */ alter table InvoiceDetail add foreign key (PatientID) references Patient(PatientID);