I am working with databases in which I have 3 tables one is skill table the other one is experience and the third one is Experience_skill table in this table I have foreign keys now the question is both foreign keys are primary keys as well. Let say I am storing data into skill table as well as in experience table how can I insert the the both keys data there in Experience_skill table. I have tried following queries.
insert into Experience_skill(eid, Skill_Id) select eid from Experience where eid=2 union select Skill_Id from Skills where Skill_Id=2 error I get:
The select list for the INSERT statement contains fewer items than the insert list. The number of SELECT values must match the number of INSERT columns. Than i tried this one.
insert into Experience_skill(eid)select eid from Experience where eid=2 it gives me this error:
Cannot insert the value NULL into column 'Skill_Id', table 'resume.dbo.Experience_skill'; column does not allow nulls. INSERT fails. Please help me out here are the snapshots of the table first snap shot is of skill table
the second one is experience table 
And this one is EXperience_skill table where i have my foreign keys
