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 derfloh 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.

cccaaa

MIS
Joined
Nov 10, 2004
Messages
1
Location
CN
I have two tables 'student' and 'modules'. The primary key in the first one is 'username' and in the second it is 'module_name'. I am trying to create another table called 'student_module', that will have 'username', and 'module_name'(these will be the primary key) and 'exam_date'. In addition to the primary key I want the first two to be foreign keys with reference to the first two tables. Although I have tried everything, this seems impossible!!

Does anyone have any ideas? Thank you!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top