Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foreign key??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
I have two tables 'student' and 'modules', where in the first one the primary key is the 'username' and in the secong it is the 'module_name'. I am trying to create another table, 'student_module', with 'username', 'module_name' and 'exam_date'. I want the first two to be the primary key but in addition I want them to be foreign keys with reference to the previous tables. I have tried everything but it seems impossible!

Does anyone have any suggestions? :-(
Thank you!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top