JINNAH UNIVERSITY FOR WOMEN
DEPARTMENT OF COMPUTER SCIENCE & SOFTWARE ENGINEERING
SUMMER 2021
LAB ASSIGNMENT
Course Title: Database System Batch: BS(SE/CS)
Course Code: CSS 2102 Marks: 20
Instructor: Sana Iqbal
Instructions
The assignment must be submitted on JUW LMS.
Email submission will not be accepted
Each student has to solve the assignment individually
Plagiarism may lead to marks deduction
Question 1 [Marks: 10]
Draw an ER diagram with relationship and cardinalities for the given scenario:
A salesperson may manage many other salespeople. A salesperson is managed by only one
salespeople. A salesperson can be an agent for many customers. A customer is managed by one
salespeople. A customer can place many orders. An order can be placed by one customer. An order
lists many inventory items. An inventory item may be listed on many orders. An inventory item is
assembled from many parts. A part may be assembled into many inventory items. Many employees
assemble an inventory item from many parts. A supplier supplies many parts. A part may be
supplied by many suppliers.
2 Page 1 of
JINNAH UNIVERSITY FOR WOMEN
DEPARTMENT OF COMPUTER SCIENCE & SOFTWARE ENGINEERING
SUMMER 2021
LAB ASSIGNMENT
Question 2 [Marks: 10]
Create database and tables using ERD and insert some records in database.
2 Page 2 of