Wednesday, 29 Nov 2023 at 17:10
November 29, 2023•513 words
⚫ QUESTIONS:-
Scenario for developing the database
Ilearn International College is an educational institution in Lalitpur, Nepal, established in 1999. The college specialises in teaching different IT and Business degrees and is affiliated with London Metropolitan University. The college has different courses for its students. In courses, there are different subjects under various courses assigned to teachers.
In Ilearn International College, firstly the students are enrolled in a course of the college. A student at Ilearn International College can enrol in a course only. With that being said, while maintaining the enrolment record, the Student ID, Student Name, Student Phone Numbers are maintained with the enrolment date and completion date. Similarly, while maintaining the records of course details such as Course Name, Subjects Name, and Teacher Name are recorded. Moreover, the teachers of Ilearn International College are responsible for delivering quality content at the college. Hence, a subject has multiple teachers allocated to it to ensure the quality of work.
The college has been keeping track of students and course records in various registers. In order to solve this traditional approach of record-keeping, you are required to develop a database for the college which will consist of at least five entities with a minimum of five records in each table. Likewise, you are also required to implement suitable constraints in each table.
Each record of the table is to be uniquely identified using a suitable attribute. Before developing the database, itself, you are required to define appropriate business rules for the defined scenario and draw an ERD (Entity Relationship Diagram) and Relational Diagram of the database model.
⚫ Entities with attributes:-
Student
StudentID (Primary Key)
StudentName
PhoneNumber
EnrollmentDate
CompletionDateCourse
CourseID (Primary Key)
CourseName
TeacherName
SubjectName
NumberOfStudentsSubject
SubjectID (Primary Key)
SubjectName
NumberOfTeachers
DifficultyLevel
PrerequisiteSubjectTeacher
TeacherID (Primary Key)
TeacherName
Specialization
ExperienceYears
ContactNumberEnrollment
EnrollmentID (Primary Key)
StudentID (Foreign Key referencing Student table)
CourseID (Foreign Key referencing Course table)
Semester
Grade
AttendancePercentage
⚫ Relationships:
Many-to-One relationship between Student and Enrollment.
- Each student can have multiple enrollments (Many Students can enroll in Many Courses).
- Each enrollment is associated with one student.
> Many-to-One relationship between Course and Enrollment.
- Each course can have multiple enrollments (Many Courses can have Many Students).
- Each enrollment is associated with one course.
> Many-to-Many relationship between Subject and Teacher.
- Each subject can have multiple teachers.
- Each teacher can teach multiple subjects.
> One-to-Many relationship between Course and Subject.
- Each course can have multiple subjects.
- Each subject belongs to one course.
> Many-to-One relationship between Teacher and Subject.
- Many teachers can be allocated to one subject.
- Each subject is associated with one teacher.
⚫ Business Rules:
Each student can enroll in only one course at a time.
Each course can have multiple subjects, but each subject belongs to only one course.
Each subject can be taught by multiple teachers, and a teacher can teach multiple subjects.
Each enrollment is associated with one student and one course.
ERD Diagram:-

ERD table:-

सक्यो! (XINA🤣)