curriculum database by: albert fiorillo jagmohan gandhi jagmohan gandhi tezir turgut tezir turgut...
TRANSCRIPT
Curriculum Database Curriculum Database
BY: Albert FiorilloBY: Albert Fiorillo
Jagmohan GandhiJagmohan Gandhi
Tezir TurgutTezir Turgut
Winston CasalinuevoWinston Casalinuevo
OUTLINEOUTLINEPurpose of DatabasePurpose of Database
FunctionsFunctions
Use Case DiagramsUse Case Diagrams1.1. Get Approval ChangesGet Approval Changes2.2. Changes for Classes.Changes for Classes.
EntityEntity Relationship DiagramRelationship Diagram
Database Relationship DiagramDatabase Relationship Diagram
Objects, Attributes, and QueriesObjects, Attributes, and Queries
Purpose of DatabasePurpose of Database
To support activities of the To support activities of the Curriculum Committee of the Curriculum Committee of the college and Curriculum college and Curriculum Committees of departments Committees of departments
FUNCTIONSFUNCTIONS
Departments can support their local databases and export data to the college database
Build unique format of syllabi of courses in departments.
Track changes in curricula.
Produce required reports.
Export/Import data to and from other applications.
Use Case Diagram 1Use Case Diagram 1Get Approval ChangesGet Approval Changes
Use Case Diagram 2Use Case Diagram 2Changes for Classes ApprovedChanges for Classes Approved
Sequence Diagram 2Sequence Diagram 2Approved ChangeApproved Change
COURSECOURSE
Course is the central object of the curriculum database. Course is the central object of the curriculum database. Different feature of the courses change over time. Different feature of the courses change over time. The Database must preserve the historical view of the course. The Database must preserve the historical view of the course. In case course is changed, database stores :In case course is changed, database stores :
1.1. Reason for the change.Reason for the change.2.2. Explanation of the change.Explanation of the change.3.3. Property that is changed (ex. Name, Requisites, Hours, Credit, Property that is changed (ex. Name, Requisites, Hours, Credit,
etc…).etc…).4.4. Date of the proposed change.Date of the proposed change.5.5. Date of actual change. Date of actual change.
Each course might have multiple changes over lifetime of the Each course might have multiple changes over lifetime of the course.course.Each version might have fallowing status:Each version might have fallowing status:
1.1. Active (Must have one.)Active (Must have one.)2.2. Inactive (Might have multiple.)Inactive (Might have multiple.)3.3. Submit for changes (Might have multiple)Submit for changes (Might have multiple)
EntityEntity Relationship Diagram Relationship Diagram
Database Relationship DiagramDatabase Relationship Diagram
Objects & AttributesObjects & Attributes
COURSESCOURSES
Course CodeCourse Code
Course DescriptionCourse Description
Course ObjectiveCourse Objective
Course DepartmentCourse Department
Faculty In ChargeFaculty In Charge
Category IDCategory ID
DEPARTMENTDEPARTMENT
Department CodeDepartment Code
Department NameDepartment Name
TEXTBOOKTEXTBOOKISBN NumberISBN NumberTitleTitleEditionEditionAuthorAuthorPublisherPublisherYearYear
COURSE TEXT BOOKCOURSE TEXT BOOKIDIDCourseCourseTextbook TitleTextbook TitleNeed TypeNeed Type
Objects & AttributesObjects & Attributes
Course MajorCourse Major
IDID
Major DescriptionMajor Description
CourseCourse
Course TypeCourse Type
Major CategoryMajor Category
IDID
MajorMajor
Category of CourseCategory of Course
Number of CreditsNumber of Credits
CategoryCategory
Category IDCategory ID
Category DescriptionCategory Description
Objects & AttributesObjects & Attributes
Course VersionCourse Version
Course CodeCourse Code
Course VersionCourse Version
Course NameCourse Name
Course Passing GradeCourse Passing Grade
Attendance PolicyAttendance Policy
Credits Credits
HoursHours
Change ReasonChange Reason
Purposed Change DatePurposed Change Date
Actual Change DateActual Change Date
Course StatusCourse Status
Course Requisite Course Requisite
IDID
CourseCourse
Course Co Prerequisite Course Co Prerequisite
Requisite TypeRequisite Type
Required GradeRequired Grade
MajorMajor
Major IDMajor ID
Major DescriptionMajor Description
Department NameDepartment Name
DegreeDegree
CREATE TABLE tblMajor (MajorId INTEGER PRIMARY KEY, MajorDescription CHAR (50), DeptId CHAR (50),Degree CHAR (50), CONSTRAINT FKMajorDeptId FOREIGN KEY (DeptId) REFERENCES tblDepartments);
• Majors Table
Create Table SQLStatementsCreate Table SQLStatements
CREATE TABLE tblCourse1 (Code INTEGER PRIMARY KEY, Description CHAR (50), Objective CHAR (50), FacultyIncharge CHAR (50), DeptId CHAR (50),CategoryID CHAR (50), CONSTRAINT FKCourseDeptId FOREIGN KEY (DeptId) REFERENCES tblDepartments, CONSTRAINT FKCourseCategoryID FOREIGN KEY (CategoryID) REFERENCES tblCategories);
• Course Table
CREATE TABLE tblVersion (Code CHAR (50) PRIMARY KEY, Version INTEGER PRIMARY KEY, Name CHAR (50), PassingGrade CHAR (1), AttendencePolicy CHAR (50),Credits CHAR (50), Hours INTEGER, ChangedReason MEMO, PurposedChangeDate DATE, ActualChangeDate DATE, Status CHAR (50),CONSTRAINT FKVersionCourse FOREIGN KEY (Code) REFERENCES tblCourses);
• Version Table
QUERIESQUERIES
Queries must be written to support the functionality Queries must be written to support the functionality of application:of application:
All information about courses which is currently active.All information about courses which is currently active.
All information about courses which is currently not All information about courses which is currently not active.active.
Text book, requisites, category or department of a Text book, requisites, category or department of a course.course.
Maximum version of the courses.Maximum version of the courses.
SELECT tblCourseVersions.Code, Max(tblCourseVersions.Version) AS MaxOfVersion FROM tblCourseVersions GROUP BY tblCourseVersions.Code;
• Selecting Maximum Course Version Query
SELECT [tblCourseVersions].[Code],[Version], [PassingGrade], [AttendencePolicy], [Credits],[Hours], [ChangeReson],[PurposedChangeDate], [ActualChangeDate], [Status] FROM tblCourseVersions WHERE ([Status])<>"Active")
• Selecting All Inactive Course Versions
SELECT tblCourseTextBooks.Code,ISBN_No, Title,.Edition,Author,Publisher, Year
FROM tblTextBooks INNER JOIN tblCourseTextBooks ON tblTextBooks.ISBN_No = tblCourseTextBooks.ISBN_No;
• Selecting Text Book for Courses
QueriesQueries