0% found this document useful (0 votes)
36 views

Entity Relational Diagram.

1. The document describes the entity relationship diagram and relational schema for a university management system. It includes tables for departments, faculty, majors, courses, students and their relationships. 2. Key tables include the Department, Faculty, Major, Course, Student and Class tables with foreign key relationships defined between them. 3. Attributes include identifiers, names, subjects, schedules and enrollments to represent the university data model.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Entity Relational Diagram.

1. The document describes the entity relationship diagram and relational schema for a university management system. It includes tables for departments, faculty, majors, courses, students and their relationships. 2. Key tables include the Department, Faculty, Major, Course, Student and Class tables with foreign key relationships defined between them. 3. Attributes include identifiers, names, subjects, schedules and enrollments to represent the university data model.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 11

1.

(a) An entity relationship diagram from the given


relationships is given bellow:

1. (b) Relational model from the above ERD is given bellow.


DEPARTMENT TABLE
Department Department_na
_no. (PK)
me
001
002
003

School of business
Media and
communication
Environmental
management and
science

Departmen Faculty_id
t _head
(FK)
Mr. A
_

11223
66512
54254

DEPARTMENT (Department_no., Department_name,., Faculty_id (FK))


DEPARTMENT. Faculty_id refers to FACULTY. Faculty_id

BELONGS TO
Department_no. Faculty_id

Department_name

001
002
003

11223
66512
54254

School of business
School of business
Media and
communication

FACULTY TABLE
Faculty_id
Faculty_name Faculty_ad
(PK)
dress
11223

Mr. U

Gulshan

...

Department_
no.(FK)

001

66512
54254

Ms. N
Mr. O

Malibagh
Badda

002
003

...

FACULTY (Faculty_id, Faculty_name, Faculty_address,., Department_no.(FK))


FACULTY. Department_no. refers to Department. Department_no.

DEPARTMENT TABLE
Department Department_na Departmen Major_subje
_no. (PK)
me
t _head
ct (FK)
001
School of business
Mr. A

HRM
002
Media and
_
MIS
003

communication
Environmental
management and
science

CMN

DEPARTMENT (Department_no. (PK), Department_name, Department


_head,, Major_subject (FK))
DEPARTMENT. Major_subject refers to MAJOR.Major_subject

OFFERS
Department_no. Major_subject
001
HRM

advisor
Mr. U

002
003

Ms. N
Mr. O

MIS
CMN

MAJOR TABLE
Major_subj Major_depart Major_faculty
ect
ment
School of
Mr. U
HRM
MIS
CMN

business
School of
business
Media and
communication

Department_
no. (FK)
001

Ms. N

002

Mr. O

003

MAJOR (Major_subject, Major_department, Major_faculty,, Department_no.


(FK))
MAJOR. Department_no. refers to DEPARTMENT. Department_no.

__________________________________________________
STUDENT TABLE
Student Student
_id
_name
Mr. S
1110258
Ms. X
1112054
1200446 Mr. V

Student_ Major_
major
subject
HRM
HRM
MIS
MIS
CMN
CMN

Major_subject
(FK)
HRM
MIS
CMN

STUDENT (Student_name, Student_major, Major_subject,, Major_subject(FK))


STUDENT. Major_subject refers to MAJOR .Major_subject

MAJORS IN
Student_id

Major_subject

Major_
department

1110258
1112054
1200446

HRM
MIS
CMN

School of business
School of business
Media and
communication

MAJOR TABLE
Major_subje Major_departm Major_
ct
ent
faculty
School of business
Mr. U
HRM
School of business
Ms. N
MIS
Media and
Mr. O
CMN

Student_id(FK)
1110258
1112054
1200446

communication

MAJOR (Major_subject, Major_department, Major_faculty,, Student_id(FK))


MAJOR. Student_id refers to STUDENT. Student_name

___________________________________________________

FACULTY TABLE
Faculty_id
Faculty_name Faculty_ ...
(PK)
address
11223
Mr. U
Gulshan
66512
Ms. N
Malibagh
54254
Mr. O
Badda

...

Major_subject
(FK)
HRM
MIS
CMN

FACULTY (Faculty_id (PK), Faculty_name, Faculty_address,, Major_subject (FK))


FACULTY. Major_subject refers to MAJOR.Major_subject

ADVISES
Faculty_id (PK)
11223
66512
54254

Major_subject
HRM
MIS
CMN

Minor_subject
ACN
ENV
MIS

MAJOR TABLE
Major_subject(P Major_department Major_ Faculty_id
K)
faculty
(FK)
School of business
Mr. U
11223
HRM
School of business
Ms. N
66512
MIS
Media and
Mr. O
54254
CMN

communication

MAJOR (Major_subject(PK), Major_department, Major_faculty,, Faculty_id (FK))


MAJOR. Faculty_id refers to FACULTY. Faculty_id

FACULTY TABLE
Faculty_id
Faculty_name Faculty_ ...
(PK)
address
11223
Mr. U
Gulshan
66512
Ms. N
Malibagh
54254
Mr. O
Badda

...

Classroom_no
.(FK)
6002
4010
2025

FACULTY (Faculty_id (PK), Faculty_name, Faculty_address,, Classroom_no.(FK))


FACULTY. Classroom_no. refers to CLASS. Classroom_no.

TEACHES
Faculty_id (PK)
11223
66512
54254

Classroom_no. Student_enrolled
6002
50
4010
65
2025
35

CLASS TABLE
Classroom_no.(PK) Class_scedule Class_capacity Faculty_id
(FK)
11223
6002
MW 080050

0930
66512
4010
ST 1700-1830
25

54254
2025
MW 134035

1510

CLASS (Classroom_no., Class_scedule, Class_capacity,, Faculty_id (FK))


CLASS. Faculty_id refers to FACULTY. Faculty_id

___________________________________________________

COURSE TABLE
Course_id Course_subject
Course_
Classroom_no.(FK)
(PK)
department
School of
302
HRM

6002
405

MIS

201

CMN

business
School of

business
Media and

communication

4010
2025

COURSE (Course_id, Course_subject, Course_ department,, Classroom_no.(FK))

COURSE. Classroom_no. refers to CLASS. Classroom_no.

HAS
Classroom_no.
6002
4010
2025

Course_id
302
405
201

Student_Id
1110258
1112054
1200446

CLASS TABLE
Classroom_no.(PK) Class_scedule Class_capacity Course_id(FK)
6002
MW 080050

302
0930
4010
ST 1700-1830
25

405
2025
MW 134035

201
1510

CLASS (Classroom_no., Class_scedule, Class_capacity,, Course_id (FK))


CLASS. Course_id refers to COURSE. Course_id

_________________________________________________

STUDENT TABLE
Student_i Student_
d(PK)
name
Mr. S
1110258
Ms. X
1112054
Mr. V
1200446

Student_ Major_sub Classroom_


major
ject
no.(FK)
HRM
HRM

6002
MIS
MIS

4010
CMN
CMN

2025

STUDENT (Student_id(PK),Student_name, Student_major, Major_subject,,


Classroom_no.(FK))
STUDENT. Classroom_no. refers to CLASS.Classroom_no.

TAKES
Student_id
1110258
1112054
1200446

Classroom_no. Course_section
6002
1
4010
2
2025
3

CLASS TABLE
Classroom_n Class_scedul Class_capacit
o.(PK)
e
y
6002
MW 080050
0930
4010
ST 170025
1830

Student_id(
FK)
1110258

1112054

2025

MW 13401510

35

1200446

CLASS (Classroom_no., Class_scedule, Class_capacity,, Student_id(FK))


CLASS. Student_id refers to STUDENT. Student_id

You might also like