Database Assignment # 1
Database Assignment # 1
Assignment-1(CLO-2)
Instructions:
2. Your assignment should contain a front page. Without the front page your assignment will
not be accepted.
your Name:
Id:
Section:
Course name:
Submitted to:
Question#1: Draw an ER diagram of the library management system. This ER diagram should
contain at least 3 strong entities.
Question#2:
CASE STUDY
Consider a database that is to represent a large business. In this typical business, there is a
Division that operates several Departments. The Division is run by one Employee and each
Department is managed by one Employee. Of course the Department employs many
Employees who work on projects that are assigned to them. Everyone needs to be busy, so
it is not uncommon for an Employee to be assigned many Projects and a Project may have
many Employees assigned to it. There is a special case of Employees that are not assigned
to any Department; they roam around looking for work from the various Departments .
BUSINESS RULES
a) A department employs many employees, but each employee is employed by one department.
b) Some employees, known as "rovers," are not assigned to any department.
c) A division operates many departments, but each department is operated by one division
d) An employee may be assigned to many projects and a project may have many employees
assigned to it.
e) A project must have at least one employee assigned to it.
f) One of the employees manages each department.
g) One of the employees runs each division.
Draw an ER diagram of the above scenario using Crow Foot notation model
Identify the main entity types and their attributes.
Identify the main relationship types between the entity types.
Determine primary key attribute for each (strong/weak) entity type.
Identify the correct cardinality constraints.
Question#3: Draw the ER diagram of Airline Reservation System containing at-least 4 entities.
Question#4: Draw the ER diagram of E commerce Platform with Product Customization. Entities
along-with attributes are given to you:
Customer(CID,name,email)
Order(OID, ODescription,ODate,totalAmount)
Product(PID, PName, price)
Category(CID, Name)
OrderItem(O_id, quantity)