lecture task
lecture task
A university consists of multiple courses, students, instructors, and classrooms. You have been hired
as a database designer to model the university’s data management system.
2. Courses:
Each course has a unique CourseID, Course Name, and Number of Credits.
3. Instructors:
Each instructor has a unique Instructor ID and Name.
4. Sections:
Each section has a unique SectionID, Year, and Semester.
5. Classrooms:
Each classroom is located in a Building and has a specific Room Number.
6. Course Enrollment:
The system records all required data each time a student enrolls in a specific course.
Relationships in the University System
The university database consists of multiple entities that interact with each other through
relationships. Below is a breakdown of these relationships and how they connect different entities:
Relationship: A many-to-many relationship exists between Students and Courses because a student
can enroll in multiple courses, and each course can have multiple students.
StudentID
CourseID
Relationship: A one-to-many relationship exists between Instructors and Courses because each
course is taught by one instructor, but an instructor can teach multiple courses.
InstructorID
CourseID
Relationship: A self-referential relationship exists within the Course entity, where some courses
require prerequisites before enrollment.
CourseID
PrerequisiteCourseID
StudentID
SectionID
Relationship: A one-to-many relationship exists between Courses and Sections because each course
can have multiple sections, but each section belongs to only one course.
CourseID
SectionID
SectionID
Name
Takes Salary
N
Semeaster
ID
M 1
Section Teaches Instructor
Section ID
Name
M
Year
Section
class
One
Class Room
Building
Room Number