Karnali Province2081 BSQuestion 2 of 3
Explain the importance of relationships in a relational database system. Describe the type of relationships commonly used in database design, and provide examples of how they are implemented in MS-Access.
5 marks
Question source
- Exam year
- 2081 BS / 2024 AD
- Level
- Level 5 (Sahayakstar)
- Paper
- Part B – Subjective
- Section
- Part B: Subjective Questions
Model answer
In a relational database, a relationship links two tables via common field (primary key → foreign key). Terminology consistent across papers.
Importance:
- Removes duplication — Citizen stored once in Citizen table, reused by ID in Service table.
- Enforces integrity — Referential integrity blocks orphan rows (service for non-existent citizen rejected).
- Enables queries — Joins answer "list services with citizen names" in seconds via
SELECT.
Types with MS-Access implementation (Database Tools → Relationships → drag field → Enforce Integrity):
- One-to-Many (1:M) — One
Departmenthas manyEmployees.Department.DeptID(PK) →Employee.DeptID(FK). Most common. - Many-to-Many (M:N) —
Students↔Coursesvia junctionEnrollment(StudentID, CourseID)split into two 1:M links. - One-to-One (1:1) —
Employee↔EmployeeConfidential(PK-to-PK) to isolate sensitive data with stricter access.