0% found this document useful (0 votes)
10 views

CS'22 DB Lab 09

The document discusses three tasks related to database systems and entity relationship diagrams. Task 1 involves designing a database for an insurance company dealing with painters, paintings, and galleries. Task 2 involves designing an ERD for an ecommerce company's product tracking system. Task 3 involves identifying entities and attributes and drawing an ERD for a tech company's organizational structure tracking employees, departments, projects, and dependents.

Uploaded by

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

CS'22 DB Lab 09

The document discusses three tasks related to database systems and entity relationship diagrams. Task 1 involves designing a database for an insurance company dealing with painters, paintings, and galleries. Task 2 involves designing an ERD for an ecommerce company's product tracking system. Task 3 involves identifying entities and attributes and drawing an ERD for a tech company's organizational structure tracking employees, departments, projects, and dependents.

Uploaded by

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

Database Systems

Instructor Mehwish Ghafoor

Lab Instructors Muhammad Taha


Abdullah Mansoor
Zain Razzaq
Muzamil Ali

Semester Spring 2024

Department of Computer Science ITU, Lahore


Pakistan
→ Instructions:
Please submit a scanned pdf file titled "BSCS22xxx-Lab05" containing your hand
written solution.

→ Lab Tasks:
Task 1: Draw ENTITY RELATIONSHIP DIAGRAM:
There is a insurance broker that specialise in insuring paintings
for galleries. You are required to design a database for this company.
● The database must store painters, paintings, and galleries information.
● Painters have a unique number, Name, and phone number
● Paintings have unique number, title and price
● Galleries have unique number, owner, phone number, commission rate and
address
● A painting is painted by a particular artist, and that painting is exhibited in a
particular gallery. A gallery can exhibit many paintings, but each painting
can be
exhibited in only one gallery. Similarly, a painting is painted by a single
painter, but
each painter can paint many paintings

Task 2:
Shipped items are the heart of an ecommerce product tracking information system.
Shipped items can be characterized by item number (unique), weight, dimensions,
insurance amount, destination, and final delivery date. Shipped items are received
into the UPS system at a single retail center. Retail centers are characterized by
their type, uniqueID, and address. Shipped items make their way to their
destination via one or more standard UPS transportation events (i.e., flights, truck
deliveries). These transportation events are characterized by a unique
scheduleNumber, a type (e.g, flight,
truck), and a deliveryRoute.
Create an Entity Relationship diagram that captures this information about that
ecommerce company’s system. Be certain to indicate identifiers and cardinality
constraints.
Task 3:
Identify the Entities and their attributes. Draw an ERD (don’t miss to mention the
cardinality of the relationships and there might be some relationship attributes).

● There is a tech company which is organized into departments. And when it


comes to the department, each department has a unique name, a unique
number, and a particular employee who manages the department. We keep
track of the start date when that employee began managing the department.
A department may have several locations.

● A department controls a number of projects, each of which has a unique


name, a unique number, and a single location.

● We store each employee's name, Social Security number, address, salary,


sex (gender), and birth date. An employee is assigned to one department,
but may work on several projects, which are not necessarily controlled by
the same department. We keep track of the current number of hours per
week that an employee works on each project. We also keep track of the
direct supervisor of each employee (who is another employee).

● For insurance purposes we want to keep record of the dependents of each


employee. We keep each dependent's first name, sex, birth date, and relatio
ship to the employee.

You might also like