The Project Diagram
1.
Translate the tables from the user view:
Faculty (FacultyNum, LastName, FirstName, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode).
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
Although, the second table is in a 3NF, but the first table is not. I should create another table for the instructor:
Faculty (FacultyNum, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode).
Instructor (InstructorNum, LastName, FirstName)
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
Determine the relationship between tables and using DBDL language:
Faculty (FacultyNum, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode, InstructorNum).
FK DepartmentCode Department
Instructor (InstructorNum, FacultyNum, ScheduleCode)
FK FacultyNum Faculty
FK ScheduleCode Section
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode, InstructorNum).
FK FacultyNum Faculty
FK CourseNum Course
FK DepartmentCode Department
2.
Translate the tables from the user view:
Department (DepartmentCode, DepartmentName, Location)
Major (MajorNum, Description, DepartmentCode)
The tables are in 3NF.
Since each Department offers only a single major, I should change the relationship between these two tables from many-to many relationship to one-to-one relation. Then use DBDL and determine the relationship between tables:
Department (DepartmentCode, DepartmentName, Location, MajorNum)
FK MajorNum Major
Major (MajorNum, Description)
The foreign key MajorNum in the department tables shows us the description of the only major that offer from the Major table.
3.
Translate the tables from the user view:
RegisterationRequest (StudentNum, PrimaryCode, AlternateCode, SemesterCode)
Since this table contains the primary and alternate schedule codes together. I should use the RegisterationRequest table only for the primary schedule code and create a conjunction table for the alternate schedule code.
RegisterationRequest (RegisterNum, StudentNum, ScheduleCode, SemesterCode)
Alternate (ScheduleCode, SemesterCode, RegisterNum)
The tables are in 3NF.
Determine the relationship between tables and use DBDL:
RegisterationRequest (RegisterNum, StudentNum, ScheduleCode, SemesterCode)
FK StudentNum Student
FK ScheduleCode Schedule
FK SemesterCode Semester
Alternate (ScheduleCode, SemesterCode, RegisterNum)
FK ScheduleCode Schedule
FK SemesterCode Semester
FK RegisterNum RegisterationRequest.
4.
Translate the tables from the user view:
Semester (SemesterCode, StartDate, EndDate, ExamStartDate, ExamEndDate, WithdrawalDate)
Since the data base of the college want to cover different dates and times for final exams. There will be a separate table called TestGroup will contain the dates and times for final exams for each group.
We can get all the information about the specific section that group will get exam on it from the section table. Also the Section table will be the conjunction table between the TestGroup table and the Semester table to know in which semester the group will do the exam, start date and end date of the semester, etc.
TestGroup table through the section table can access to other tables “course, department, major, student, etc.” To get needed information.
Semester (SemesterCode, StartDate, EndDate, WithdrawalDate)
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
TestGroup (TestGroupID, ExamStartDate, ExamEndDate, Time, SemesterCode)
The tables are in 3NF.
Determine the relationship between tables and use DBDL:
Semester (SemesterCode, StartDate, EndDate, WithdrawalDate)
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
FK SemesterCode Semester
TestGroup (TestGroupID, ExamStartDate, ExamEndDate, Time, SemesterCode, ScheduleCode)
FK ScheduleCode Section.
Translate the tables from the user view:
Faculty (FacultyNum, LastName, FirstName, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode).
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
Although, the second table is in a 3NF, but the first table is not. I should create another table for the instructor:
Faculty (FacultyNum, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode).
Instructor (InstructorNum, LastName, FirstName)
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
Determine the relationship between tables and using DBDL language:
Faculty (FacultyNum, Street, City, State, Zip, CurrentRank, StartDate, OfficeNum, DepartmentCode, InstructorNum).
FK DepartmentCode Department
Instructor (InstructorNum, FacultyNum, ScheduleCode)
FK FacultyNum Faculty
FK ScheduleCode Section
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode, InstructorNum).
FK FacultyNum Faculty
FK CourseNum Course
FK DepartmentCode Department
2.
Translate the tables from the user view:
Department (DepartmentCode, DepartmentName, Location)
Major (MajorNum, Description, DepartmentCode)
The tables are in 3NF.
Since each Department offers only a single major, I should change the relationship between these two tables from many-to many relationship to one-to-one relation. Then use DBDL and determine the relationship between tables:
Department (DepartmentCode, DepartmentName, Location, MajorNum)
FK MajorNum Major
Major (MajorNum, Description)
The foreign key MajorNum in the department tables shows us the description of the only major that offer from the Major table.
3.
Translate the tables from the user view:
RegisterationRequest (StudentNum, PrimaryCode, AlternateCode, SemesterCode)
Since this table contains the primary and alternate schedule codes together. I should use the RegisterationRequest table only for the primary schedule code and create a conjunction table for the alternate schedule code.
RegisterationRequest (RegisterNum, StudentNum, ScheduleCode, SemesterCode)
Alternate (ScheduleCode, SemesterCode, RegisterNum)
The tables are in 3NF.
Determine the relationship between tables and use DBDL:
RegisterationRequest (RegisterNum, StudentNum, ScheduleCode, SemesterCode)
FK StudentNum Student
FK ScheduleCode Schedule
FK SemesterCode Semester
Alternate (ScheduleCode, SemesterCode, RegisterNum)
FK ScheduleCode Schedule
FK SemesterCode Semester
FK RegisterNum RegisterationRequest.
4.
Translate the tables from the user view:
Semester (SemesterCode, StartDate, EndDate, ExamStartDate, ExamEndDate, WithdrawalDate)
Since the data base of the college want to cover different dates and times for final exams. There will be a separate table called TestGroup will contain the dates and times for final exams for each group.
TestGroup table through the section table can access to other tables “course, department, major, student, etc.” To get needed information.
Semester (SemesterCode, StartDate, EndDate, WithdrawalDate)
TestGroup (TestGroupID, ExamStartDate, ExamEndDate, Time, SemesterCode)
The tables are in 3NF.
Determine the relationship between tables and use DBDL:
Semester (SemesterCode, StartDate, EndDate, WithdrawalDate)
Section (ScheduleCode, SemesterCode, SectionLetter, Time, Room, CurrentEnrollment, MaximumEnrollment, FacultyNum, CourseNum, DepartmentCode).
FK SemesterCode Semester
TestGroup (TestGroupID, ExamStartDate, ExamEndDate, Time, SemesterCode, ScheduleCode)
FK ScheduleCode Section.







Comments
Post a Comment