0% found this document useful (1 vote)
583 views19 pages

4.1 ER Diagram - Exercise 1

The document describes a series of exercises to practice conceptual database design using entity-relationship (ER) diagrams. It includes examples of entities like employees, departments, shipped items, service centers, artists, artwork, and relationships between them. It prompts the reader to draw ER diagrams capturing the relationships between entities for different scenarios like a company, delivery service, art gallery, and additional exercises involving organizations, customers, projects, products, and inventory.

Uploaded by

sami
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 (1 vote)
583 views19 pages

4.1 ER Diagram - Exercise 1

The document describes a series of exercises to practice conceptual database design using entity-relationship (ER) diagrams. It includes examples of entities like employees, departments, shipped items, service centers, artists, artwork, and relationships between them. It prompts the reader to draw ER diagrams capturing the relationships between entities for different scenarios like a company, delivery service, art gallery, and additional exercises involving organizations, customers, projects, products, and inventory.

Uploaded by

sami
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/ 19

Conceptual

Database Design
Exercise –Part 1

CS341
Understanding ER Diagrams - #1

2
Understanding ER Diagrams - #2

3
Understanding ER Diagrams - #3

4
Understanding ER Diagrams - #4

5
Understanding ER Diagrams - #5

6
Understanding ER Diagrams - #6

7
Understanding ER Diagrams - #7

8
Understanding ER Diagrams - #8

9
Understanding ER Diagrams - #9

10
Understanding ER Diagrams - #10

11
Understanding ER Diagrams - #11

12
Exercise
 A company database needs to store information about
employees (identified by ssn, with salary and phone as
attributes) and departments (identified by dno, with
dname and budget as attributes).
 Employees work in departments; each department is
managed by an employee;
 Draw an ER diagram that captures this information.

13
Exercise 1
 A delivery service keeps an up-to-date information on the
current location of each shipped item. Shipped items are
identified by item number (unique), weight, dimension,
destination, and final delivery date. Items to be shipped are
received at a single service center. Service centers are
characterized by their uniqueID and address. Shipped items
make their way to their destination via one or more standard
transportation carriers (i.e., flights, truck deliveries). The
transportation events are characterized by a unique
schedule number, a type (e.g, flight, truck), and a delivery
route.
 Create an ER Diagram that captures this information about
the UPS system.

14
Exercise 3
 Galleries keep information about artists, their names
(which are unique), birthplaces, age, and style of art. For
each piece of artwork, the artist, the year it was made, its
unique title, its type of art (e.g., painting, sculpture,
photograph, etc.), and its price must be stored. Pieces of
artwork are also classified into groups of various kinds,
for example, portraits, still lifes, works by Picasso, or
works of the 19th century; a given piece may belong to
more than one group. Each group is identified by a name
(like those just given) that describes the group.
 Draw the ER diagram for the database

15
Exercise 3 (cont)
 Begin with the entities and relationships.
 “…artists, their names (which are unique), birthplaces,
age, and style of art.”
 “For each piece of artwork, the artist, the year it was
made, its unique title, its type of art … and its price must
be stored.”
 “Pieces of artwork are also classified into groups of
various kinds, … Each group is identified by a name (like
those just given) that describes the group. “

16
Additional Exercises
 1. An organization is composed of many departments.
Each of the departments has many employees assigned
to it, but each employee works for only one department.
Each department is managed by one employee, and
each of these managers can manage only one
department at a time.
 2. A customer can rent many videotapes from a video
store and each of the videotapes can be rented to many
customers
 3. The ABC Corporation operates many factories. Each
factory is located in a region. Each factory employs
many employees, but each of these employees is
employed by only one factory.
17
Additional Exercises (cont.)
 4. ABC Construction Company is a multi-state building
contractor specializing in medium-priced town homes.
Assume that the main entities are customers,
employees, projects and equipment. A customer can hire
the company for more than one project, and employees
sometimes work on more than one project at a time.
Equipment, however, is assigned to only one project at a
time.
 5. XYZ is a child daycare centre. Parents register their
child or children at the school. Children are assigned to a
room based on their age. An employee can only be
assigned to one room, but a room may be assigned one
or more employees.
18
Additional Exercises (cont.)
 6. A hardware store sells several products to its
customers. Each product may have different
manufacturers. Each time one or more products are sold
to a customer, an invoice is created which lists the date,
items purchased and their prices, and then the total
purchase and tax amounts.
 7. The Supplies department keeps track of all the items
for the organization. The organization has several rooms
in different buildings. Each room within a building is
assigned to a department. Each item is assigned a
unique ID when it is purchased. This ID is used to keep
track of the item.

19

You might also like