You are on page 1of 11

Student Database

Management
System

By: Chigbo Chibuikem Anthony


(12105436)
ENTITIES AND THEIR ATTRIBUTES

s/no ENTITIES ATTRUBUTES

1 User  U_name
 U_mobile
 U_ID
 U_Email

2 Student  S_Name
 S_ID
 S_Age
 Sex
 S_No
 S_Email

3 Course  C_ID
 C_Name
 C_Type
 C_Stu_ID

4 Teacher  T_ID
 T_name
 T_Course
 Sex

5 Fees  F_Type
s/no ENTITIES ATTRUBUTES

 F_ID
 F_Amount

6 Login  LG_Name
 LG_ID
 U_Password
 L_Usename

7 Exam  E_ID
 E_Grades
 E_Type
ER DIAGRAM
Schemas Used in this ER Diagram

Student:
sex S_Email S_Age S_name S_ID S_No

Teacher:
Sex T_name T_course T_ID

Exam:
E_ID E_Grade E_Type

Fees:
F_ID F_Type F_Amount
Login:
LG_Name LG_ID LG_Password L_Username

Course:
C_Name C_Type C_Stu_Id C_ID

User:
L_name F_name U_Mobile U_ID U_Email
Types of Relation
One User can Login at a time so this relation is 1:1
One User can have only one Student database so this relation is 1:1
One Student can manage many Courses 1:M
One student can pay many fees 1:M
Many Exams can have many Fees M:M
One Student can have many teachers 1:M
One user has many courses 1:M
One User has many fees to make 1:M

Degree of Relation

The degree of the relation is the number of attributes that are directly in a
relationship. In this the degree is 7.
NORMALIZATION OF TABLES
STUDENTS
S_ID -> S_Name, S_ID->S_No, S_ID-> S_Age, Sname->Sex, Sno->Semail
Finding the closures for this relation:
S_ID ={SID, Sname, Sno, Sage, Sex, S_email}
S_No={Sno, S_email}
S_Name={S_Name, Sex}
S_Age= {S_Age}
Sex={Sex}
S_Email= {S_Email}
Candidate keys: {SID}
Prime Attribute: {SID}
Non Prime Attribute:{Sname, Sno, Sage,Sex, Semail}

1NF 2NF 3NF


All values are having There is no partial The table contains at
atomic values so table is Dependency in the table least one transitive
in 1NF. using the prime and non- dependency, so it is not
prime attribute. Table is in 3NF ( SID-
in 2NF. >Sno, SNo,->S_email)
EXAM
E_ID -> E_Grade, EID->Etype
EID= {EID, Egrade, E_Type}
E_Grade= {E_Grade}
E_Type ={E_Type}
Candidate keys: {E_ID}
Prime Attribute: {E_ID}
Non Prime Attribute:{E_Grade, E_Type}

1NF 2NF 3NF

All values are having There is no partial No Transitive


atomic values so table is Dependency in the table Dependency. Therefore
in 1NF. using the prime and non- table is in 3NF
prime attribute. Table is
in 2NF.
TEACHER
T_ID -> T_Name, T_ID->T_Course T_Name->Sex
T_ID= {T_ID, T_Name, T_Course, T_Sex}
T_Name= {T_Name, Sex}
T_Course ={T_Course}
Candidate keys: {T_ID}
Prime Attribute: {T_ID}
Non Prime Attribute:{TName, Sex, T_Course}

1NF 2NF 3NF

All values are having There is no partial There is transitive


atomic values so table is Dependency in the table Dependency. Therefore
in 1NF. using the prime and non- table is not 3NF
prime attribute. Table is
in 2NF.

You might also like