Page 1 of 10
Tony LoCoco
My selected topic is a University system for a fictitious school called LoCoco University.
Entity List & Descriptions
Entity Name Description / Special Notes Unique Identifier
Employees Contains a list of the University’s employees Employee ID
Departments Contains a list of the University’s organizational
departments. Employees are assigned to departments.
Department
Advisors Contains a list of Academic Advisors assigned to students.
An Advisor is also a University employee
Employee ID
(from the Employees table)
Students Contains a list of the University’s students Student ID
Courses Contains a list of Courses offered at the University that
students may enroll in.
Course ID
Sessions Contains a list of the Sessions. An academic school year is
broken down into several sessions. Several courses are
conducted during a session. Sessions is a look-up table
which contain a list of the valid Sessions a in which a
student can enroll in a course.
Session
Student/Courses Maintains a list of each of the courses a student took as
well as the grade earned during that course and section.
Session ID (from Sessions)
Course ID (from Courses)
Student ID (from Students)
Page 2 of 10
Relationships
Relationship
Type
Entity #1 Entity #2 Description / Justification
one-to-one (1:1) Advisors Employees An Advisor is an Employee with additional data
attributes. An Employee may or may not be an Advisor.
one-to-many (1:M) Employees Departments A Department may have 0, 1 or many Employees and an
Employee is assigned to just one Department.
one-to-many (1:M) Advisors Students An Advisor may be assigned to 0, 1 or many Students and
a Student is assigned to just one Advisor.
many-to-many
(M:N)
Students Courses A Student be take 0 , 1 or many Courses and a Course can
contain 0, 1 or many Students.
Relational Databases can not support many-to-many
relationships. These M:N must be broken down into two
one-to-many relationships with a bridge entity
connecting the M:N entities. In this case, Student_Courses
is that bridge entity.
Page 3 of 10
Entity Relationship Diagram (ERD)
Emloyees
PK Employee_ID
Last_Name
First_Name
Birth_Date
Employment_Start_Date
Hourly_Pay
FK1 Department_ID
Manager_ID
Departments
PK Department_ID
Department_Name
Students
PK Student_ID
Last_Name
First_Name
Birth_Date
Enroll_Date
Status_Code
Total_Hours
FK1,FK2 Advisor_ID
Advisors
PK,FK1 Employee_ID
Certification_Level
Courses
PK Course_ID
Course_Code
Course_Name
Credit_Hours
Sessions
PK Session_ID
Session_Name
Session_Start_Date
Student_Courses
PK,FK1 Session_ID
PK,FK3 Course_ID
PK,FK2 Student_ID
Earned_Grade
Page 4 of 10
Sample Data
(Primary keys are in Yellow)
Advisors
Employee_ID Certification_Level
1344 100
1565 80
Page 5 of 10
Courses
Course_ID Course_Code Course_Nam.
social pharmacy d-pharm 1st year by Pragati K. Mahajan
Page 1 of 10 Tony LoCoco My selected topic is a U.docx
1. Page 1 of 10
Tony LoCoco
My selected topic is a University system for a fictitious school
called LoCoco University.
Entity List & Descriptions
Entity Name Description / Special Notes Unique Identifier
Employees Contains a list of the University’s employees
Employee ID
Departments Contains a list of the University’s organizational
departments. Employees are assigned to departments.
Department
Advisors Contains a list of Academic Advisors assigned to
students.
An Advisor is also a University employee
Employee ID
2. (from the Employees table)
Students Contains a list of the University’s students Student ID
Courses Contains a list of Courses offered at the University that
students may enroll in.
Course ID
Sessions Contains a list of the Sessions. An academic school
year is
broken down into several sessions. Several courses are
conducted during a session. Sessions is a look-up table
which contain a list of the valid Sessions a in which a
student can enroll in a course.
Session
Student/Courses Maintains a list of each of the courses a
student took as
well as the grade earned during that course and section.
Session ID (from Sessions)
Course ID (from Courses)
3. Student ID (from Students)
Page 2 of 10
Relationships
Relationship
Type
Entity #1 Entity #2 Description / Justification
one-to-one (1:1) Advisors Employees An Advisor is an
Employee with additional data
attributes. An Employee may or may not be an Advisor.
one-to-many (1:M) Employees Departments A Department may
have 0, 1 or many Employees and an
Employee is assigned to just one Department.
one-to-many (1:M) Advisors Students An Advisor may be
assigned to 0, 1 or many Students and
a Student is assigned to just one Advisor.
4. many-to-many
(M:N)
Students Courses A Student be take 0 , 1 or many Courses and a
Course can
contain 0, 1 or many Students.
Relational Databases can not support many-to-many
relationships. These M:N must be broken down into two
one-to-many relationships with a bridge entity
connecting the M:N entities. In this case, Student_Courses
is that bridge entity.
Page 3 of 10
Entity Relationship Diagram (ERD)
Emloyees
PK Employee_ID
12. Page 10 of 10
Student_Courses
Session_ID Course_ID Student_ID Earned_Grade
10 1 11232 F
10 1 12100 A
10 1 13310 B
10 1 14641 B
10 1 16105 C
11 1 11232 A
11 2 12100 B
11 2 13310 B
11 2 14641 A
11 2 16105 C
11 2 11232 A
11 6 12100 B
11 6 13310 B
3 6 14641 B
13. 3 6 16105 A
{Enter Your Name Here}
My selected topic is:
_____________________________________________.
Entity List & Descriptions
Entity Name
Description / Special Notes
Unique Identifier
14. Relationships
Relationship Type
Entity #1
Entity #2
Description / Justification
one-to-one (1:1)
{why is this an example of a 1:1 and not a 1:M or M:N?}
one-to-many (1:M)
{why is this an example of a 1:M and not a 1:1 or M:N?}
many-to-many (M:N)
{why is this an example of a M:N and not a 1:1 or 1:1?}
Entity Relationship Diagram (ERD)
{Insert your ERD here}
Sample Data
· Highlight Unique Identifiers in Yellow
· Note: Format the table so that all rows and columns are
visible.
15. · Delete un-needed columns and rows.
· Add more columns/rows as needed. Just make sure all
columns are visible in the white space.
{Entity #1}