You are on page 1of 2

HINDUSTHAN COLLEGE OF ENGINEERING & TECHNOLOGY

COIMBATORE 641032
DEPARTMENT OF COMPUTER APPLICATIONS
MC7103 - DATABASE MANAGEMENT SYSTEMS
ASSIGNMENT 1 ER DIAGRAM / UNIT 1

Case Study - 1
Given the case study of ER model of a college database and the assumptions are given
along with the steps to be performed. Read the steps and draw the ER diagram for a
college database. The diagram should include notations for weak entity, strong entity,
participation, cardinality, primary key
Assumptions :
1. A college contains many departments
2. Each department can offer any number of courses
3. Many instructors can work in a department
4. An instructor can work only in one department
5. For each department there is a Head
6. An instructor can be head of only one department
7. Each instructor can take any number of courses
8. A course can be taken by only one instructor
9. A student can enroll for any number of courses
10. Each course can have any number of students

Given Steps in ER Modeling

1. Identify the Entities


2. Find relationships
3. Identify the key attributes for every Entity
4. Identify other relevant attributes
5. Draw complete E-R diagram with all attributes including Primary Key
6. Review your results with your Business users

Step 1: Identify the Entities

1. DEPARTMENT
2. STUDENT
3. COURSE
4. INSTRUCTOR

1 Prepared by : Mrs.M.Nirmala / AP / MCA


Step 2: Find the relationships
1. One course is enrolled by multiple students and one student enrolls for multiple
courses, hence the cardinality between course and student is Many to Many.
2. The department offers many courses and each course belongs to only one
department, hence the cardinality between department and course is One to Many.
3. One department has multiple instructors and one instructor belongs to one and only
one department , hence the cardinality between department and instructor is one to
Many.
4. Each department there is a Head of department and one instructor is Head of
department ,hence the cardinality is one to one .
5. One course is taught by only one instructor, but the instructor teaches many
courses, hence the cardinality between course and instructor is many to one.

Step 3: Identify the key attributes

1. Deptname is the key attribute for the Entity Department, as it identifies the
Department uniquely.
2. Course# (CourseId) is the key attribute for Course Entity.
3. Student# (Student Number) is the key attribute for Student Entity.
4. Instructor Name is the key attribute for Instructor Entity.

Step 4: Identify other relevant attributes

1. For the department entity, the relevant attribute is location


2. For course entity, course name,duration,prerequisite
3. For instructor entity, room#, telephone#
4. For student entity, student name, date of birth

Case Study 2
Given the assumptions for a banking business scenario construct the ER
diagram. Draw the ER diagram by keeping the previous case study as base
example.
Assumptions
1. There are multiple banks and each bank has many branches. Each branch has
multiple customers
2. Customers have various types of accounts
3. Some Customers also had taken different types of loans from these bank branches
4. One customer can have multiple accounts and Loans

2 Prepared by : Mrs.M.Nirmala / AP / MCA

You might also like