0% found this document useful (0 votes)
7 views2 pages

Database Assignment # 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Database Assignment # 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

School of Systems and Technology

Department of Computer Science

Course Code: CC2141 Semester: S2025

Title: DATABASE SYSTEMS Total Marks: 20

Resourse Person: Khawaja Ubaid ur Rehman

Assignment-1(CLO-2)

Instructions:

1. Do your own assignment copy/paste assignments will be marked as zero.

2. Your assignment should contain a front page. Without the front page your assignment will
not be accepted.

3. Make a front page of assignment which includes

your Name:

Id:

Section:

Course name:

Submitted to:

4. Upload Assignment before due date on LMS.

The due date of Assignment#1 is 29th April 2025.


Each question carries 5 marks.

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)

You might also like