Foreign Key Not Populating with Primary Key Values
I have searched for an answer but am not finding it. I have 2 tables. Both have an auto-generated PK. The PK from table 2 is an FK in table 1. Since they are both auto-generated I assumed the FK in table 1 would populate with the value that is auto-generated from table 2 but it is not working. The FK in table 1 ends up null. Here is my SQL code for creating table 1: CREATE TABLE Employee_tbl ( EmployeeID int PRIMARY KEY IDENTITY, LastName varchar(20) not null, FirstName varchar(20) not null, Age varchar(3) not null, JobID int FOREIGN KEY REFERENCES JobTitle_tbl(JobID), ) and here is table 2: