How can I populate a table with a foreign key? For my GCSE I need to Create and populate a third table called entries using query scripts. This table should contain foreign keys to allow sensible links to be made with the other two tables, together with the dates of each exam.

Whenever I try to insert records into my entries table it says I am not able to due to the foreign key. 

Any help would be great thanks
Basically is a syntax "misplacement":

INSERT INTO Entries VALUES (entry_id, subject_id, student_id)


Column names should be placed before VALUES clause or, if you supply values for all columns in the table, you can avoid to use it.

INSERT INTO Entries (entry_id, subject_id, student_id) VALUES 


Try it on this way:

INSERT INTO Entries VALUES (1,4,1,'date'), (2,8,2,'date'), ...