Professional Documents
Culture Documents
Chigbo Chibuikem K21PP
Chigbo Chibuikem K21PP
Management
System
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}