Professional Documents
Culture Documents
18CS440 - Database Management Systems - Database Application
18CS440 - Database Management Systems - Database Application
1 Introduction
This project aims to computerize the operations of the student database of a
School. Features include managing attendance details,student details,group
details,Employee details and marks secured by them. The participation of the
students in various extracurricular activities are also incorporated.
2 Application Users
3 Functions Overview
The following functionality will be supported by the student database
management system.
Relationships:
i. Belongs
ii. Is-a
iii. Teaches
iv. Participate
v. Enroll
vi. Handles
vii. Take
viii. Consist
ix. Manage
Page 3 of 29
………………………………………………………………………………………………………
Page 4 of 29
………………………………………………………………………………………………………
7.Schema Diagram
7. 1 ER to Relational model
1.Student Entity into Student Relation
Explanation: As student entity is a strong entity, it is converted directly with all its
attributes as the column and entity name as the schema name
Schema Structure : Student ( s_id, s_name, age, father_name, fa_ph_no, d_o_b,
grp, st_name, place, phone_no, st_id,code)
Page 5 of 29
………………………………………………………………………………………………………
2.Attendance entity
3.Staff entity
Explanation: As staff entity is a strong entity, it is converted directly with all its
attributes as the column and entity name as the schema name
Schema Structure : Staff( exp,id,ph no,d_o_j)
Page 6 of 29
………………………………………………………………………………………………………
4.sports entity
Explanation: As sports entity is a strong entity, it is converted directly with all its
attributes as the column and entity name as the schema name
Schema Structure : Sports( sp_name,captian,coach)
5.office entity
6.subject entity
Explanation :As subject entity is a strong entity, it is converted directly with all its
attributes
as the column and entity name as the schema name.
Schema Structure : subject(code,name)
6.exam entity
8.employee entity
Page 9 of 29
………………………………………………………………………………………………………
Page 10 of 29
………………………………………………………………………………………………………
Page 11 of 29
………………………………………………………………………………………………………
S_id -> S_name, S_id -> age, S_id -> D_O_B, S_id -> Father_name, S_id -> phone no, S_id
-> st_name, S_id -> grp
Father_name -> Fa_ph_no, st_name -> place.
Page 12 of 29
………………………………………………………………………………………………………
NORMAL FORMS
TABLE NAME:STUDENT
1NF:
This table satisfies the condition of 1NF (i.e.) the entries have atomic values.
2NF:
The table has some partial dependencies. Fa_ph_no is depend on Father name and
place depends on St_name. So, decompose the table into smaller tables
Now , all the entries are fully functional dependent on primary key.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
Page 13 of 29
………………………………………………………………………………………………………
This table satisfies the condition of 1NF (i.e.) the entries have atomic values.
2NF:
All Entries are fully functionally dependent on primary key. So, it satisfies 2NF.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
Table name:Staff
1NF:
This table satisfies the condition of 1NF (i.e.) the entries have atomic values.
2NF:
All Entries are fully functionally dependent on primary key St_id. So, it satisfies
2NF.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
TABLE NAME:OFFICE
1NF:
This table satisfies the condition of 1NF (i.e.) the entries have atomic values.
2NF:
Status is not depend on primary key. So, decompose into smaller tables
Now, the tables are in 2NF.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
Page 14 of 29
………………………………………………………………………………………………………
Table NAME:PARTICIPATE
1NF:
This table satisfies the condition of 1NF (i.e.) the entries have atomic values.
2NF:
All Entries are fully functionally dependent. So, it satisfies 2NF.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
TABLE NAME:ATTENDANCE
1NF:
This table satisfies the condition of 1NF
(i.e.) the entries have atomic values.
2NF:
All Entries are fully functionally dependent on composite keys Date and S_id. So,
it satisfies 2NF
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
Page 15 of 29
………………………………………………………………………………………………………
2NF:
The table has some partial dependencies. Place depends on St_name. So,
decompose the table into smaller tables
Now, the entries are fully functionally dependent. So, it satisfies 2NF.
3NF:
This table has no transitive dependencies. So, automatically it is in 3NF.
Page 16 of 29
………………………………………………………………………………………………………
9. Data Dictionary
9.1 subject
Subject relation
Page 17 of 29
………………………………………………………………………………………………………
Page 18 of 29
………………………………………………………………………………………………………
Page 19 of 29
………………………………………………………………………………………………………
10.2 class
10.3 Employee
10.4 EXAM
Page 20 of 29
………………………………………………………………………………………………………
10.5 OFFICE
10.6 PARTICIPATION
10.7 SPORTS
10.8 STUDENTS
10.9 SUBJECTS
Page 21 of 29
………………………………………………………………………………………………………
10.10 STAFFS
Page 22 of 29
………………………………………………………………………………………………………
Page 23 of 29
………………………………………………………………………………………………………
Page 24 of 29
………………………………………………………………………………………………………
Page 25 of 29
………………………………………………………………………………………………………
Page 26 of 29
………………………………………………………………………………………………………
Page 27 of 29
………………………………………………………………………………………………………
Page 28 of 29
………………………………………………………………………………………………………
Page 29 of 29