A primary key uniquely identifies a row. Choose a stable identifier such as student_id. A name is a poor candidate because two students can share one. A foreign key refers to a key in another table. For example, enrolment.student_id can reference student.student_id. Try sketching the keys for students, courses and enrolments.
- Section
- Study materials
- Kind
- Notes
- Program
- Engineering
- Department
- Computer Science
- Subject
- DBMS