You are on page 1of 7

VIEW GRADES

DATA & SUBJECT ERROR


<<EXTEND>>
PROCESS ENROLLING PROCESSING

PRINT STUDENT COURSE

STUDENTS

LAN
<<INCLUDE>>

ADD SUBJECT

ADD COURSE

CONFIGURATION OF SYSTEM MASTER FILE


DATABASE
ASSIGNED THE SUBJECT
ADMIN SERVER

USER CONFIGURATION
<<EXTEND>>
PRINT

DISPLAY SUBJECT TO TEACH

IMPORTING OF GRADES

SUBMIT GRADES

INSTRUCTOR <<EXTEND>>
Relational Schema

Faculty
(facultyID, lastname, firstname, contact_no, address)

Class
(student_no, facultyID, classcode, class_name)

Student
(student_no, lastname, firstname, gender, contact_no, address)

Course
(student_no, course_code, course_name, course_desc)

Subject
(student_no, subject_code, subject _name, subject _desc, subject_unit)

Grades
(student_no, facultyID, finalgrade, credit, remarks)
Entity Relationship Diagram

firstname
lastname class_id classcode
address

facultyID Faculty handles Class class_name

course_code
course_name

contact_no
Course

compose
course_desc

submit
lastname

firstname

student_no Student
credit contact_no
remarks
gender
address
finalgrade Grades has

takes

subject_code
subject_name
e
subject_unit
Subject

subject_desc

taken
Schema Diagram

Faculty Class Student


facultyID student_no
class_id class_id class_id
lastname class_code lastname
firstname class_name firstname
contact_no gender
address contact_no
address

Grades
student_no
facultyID Course Subjects
finalgrade student_no student_no
credit course_code subject_code
remarks course_name subject_name
course_desc subject_desc
subject_unit
DDL Statements

For table Faculty


CREATE TABLE Faculty
(
facultyID int (50) NOT NULL,
lastname text (100) NOT NULL,
firstname text (100) NOT NULL,
contact_no varchar (100) NOT NULL,
address varchar (100) NOT NULL,
CONSTRAINT pk_facultyID PRIMARY KEY (facultyID),
CONSTRAINT fk_class_id FOREIGN KEY (class_id)
)

For table Class


CREATE TABLE Class
(
class_id int (50) NOT NULL,
class_code varchar (100) NOT NULL,
class_name text (100) NOT NULL,
CONSTRAINT pk_class_id PRIMARY KEY (class_id)
)

For table Student


CREATE TABLE Student
(
student_no int (50) NOT NULL,
lastname text (100) NOT NULL,
firstname text (100) NOT NULL,
gender text (100) NOT NULL,
contact_no varchar (100) NOT NULL,
address varchar (100) NOT NULL,
CONSTRAINT pk_student_no PRIMARY KEY (student_no),
CONSTRAINT fk_class_id FOREIGN KEY (class_id)
)
For table Course
CREATE TABLE Course
(
Student_no int (50) NOT NULL,
course_code varchar (100) NOT NULL,
course_name varchar (100) NOT NULL,
course_desc varchar (100) NOT NULL,
CONSTRAINT fk_student_no FOREIGN KEY (student_no)
)

For table Subject


CREATE TABLE Subject
(
Student_no int (50) NOT NULL,
subject_code varchar (100) NOT NULL,
subject_name varchar (100) NOT NULL,
subject_desc varchar (100) NOT NULL,
subject_unit varchar (100) NOT NULL,
CONSTRAINT fk_student_no FOREIGN KEY (student_no)
)

For table Grades


CREATE TABLE Grades
(
Student_no int (50) NOT NULL,
facultyID int (50) NOT NULL,
finalgrade int (100) NOT NULL,
credit text (20) NOT NULL,
remarks text (20) NOT NULL,
CONSTRAINT fk_student_no FOREIGN KEY (student_no)
CONSTRAINT fk1_ facultyID FOREIGN KEY (facultyID)

You might also like