Nepal Oil Corporation2079 BSQuestion 5 of 5
(a) What is the difference between primary key and foreign key? Explain with examples.
5 marks
Question source
- Exam year
- 2079 BS / 2023 AD
- Level
- Level 4
- Paper
- Technical – Subjective
- Section
- Technical Questions (50 Marks)
Model answer
Primary key uniquely identifies table records; Foreign key references primary key of another table. DBMS (MySQL, Access, Oracle) manages relational data.