use this code:
INSERT INTO Table4 (FirstName, LastName, State, Position, EmploymentStatus, Source)
SELECT FirstName, LastName, State, Position, EmploymentStatus, 'Table1' FROM Table1;
INSERT INTO Table4 (FirstName, LastName, State, Position, EmploymentStatus, Source)
SELECT FirstName, LastName, State, Position, EmploymentStatus, 'Table2' FROM Table2;
INSERT INTO Table4 (FirstName, LastName, State, Position, EmploymentStatus, Source)
SELECT FirstName, LastName, State, Position, EmploymentStatus, 'Table3' FROM Table3;
INSERT INTO Table5(FirstName, LastName, State, Position, EmploymentStatus)
SELECT
MAX(FirstName),MAX(LastName),MAX(State),MAX(Position),MAX(EmploymentStatus)
FROM table4
group by FirstName , LastName
this code work
table5 output:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…