You are on page 1of 4

Lab Report No 1

DATABASE SYSTEMS (EC-334)

Submitted By:

Neyan Saif (17-CE-031)


Shahpall Khan (17-CE-013)

Submitted to:

Sir Basit Ikram

Department of Computer Science and Engineering,


Faculty of Engineering and Technology,
HITEC University, Taxila
Draw an Entity Relationship Diagram (ERD)
Objective:
 Installation and use of
UML Modeling software
(Microsoft Visio).  To
Practice ERD Diagram on
Visio.
Software Tools:
 Microsoft Visio 2007

 Theory:

Entity-relationship diagram (ERD) is a data modeling technique that graphically illustrates


an information system's entities and the relationships between those entities.
A typical example could be entities Customer, Order, and Product. An instance of the
Customer entity is identified by a unique customer number, an instance of the Order entity is
identified by a unique order number, and an instance of the Product entity is identified by a
unique product number. Between Customer and Order there is a one-to-many relationship, if
we think that one customer (one instance of the Customer entity) can be related to many
orders, and one order can be related to one customer. Between Order and Product there is a
many-to-many relationship, if we think that one order can be related to many products and
one product to many orders. This can be represented with an ER diagram:
1. Lab report Tasks:

A. Show a diagram completed in the lab.


B. Design ERD for a car rental enterprise in MS Visio. The database should include
the following information:

 basic information about cars: license number (unique for each car), model,
purchase date
 basic customer information: customer number, name, phone number
 Car services: date, description (for one car there can be many services!) 
rentals: which car, for which customer, date, length (hours)

Procedure:

A.
B.

Conclusion:

In this lab, we perform the given tasks in visual studio. We learn about Entity, Attributes,
Primary key, one to one relationships, one to many relationships, many to many relationships.
And made two relationship diagrams with the help of software

You might also like